Class CallingConventionName

java.lang.Object
com.pnfsoftware.jeb.util.base.DynamicEnum<CallingConventionName>
com.pnfsoftware.jeb.core.units.code.asm.type.CallingConventionName

@Ser public class CallingConventionName extends DynamicEnum<CallingConventionName>
Dynamic enumeration of well-known (and maybe not so) calling convention names.
  • Field Details

  • Constructor Details

    • CallingConventionName

      protected CallingConventionName(int id, String name)
  • Method Details

    • ordinal

      public int ordinal()
      Description copied from class: DynamicEnum
      Get this entry's current ordinal in its dynamic enum.
      Specified by:
      ordinal in class DynamicEnum<CallingConventionName>
      Returns:
      current ordinal of this entry
    • count

      public static int count()
      Retrieve the number of registered calling convention names.
      Returns:
      registered name count
    • values

      public static Collection<CallingConventionName> values()
      Retrieve registered calling convention names.
      Returns:
      registered names
    • valueOf

      public static CallingConventionName valueOf(String name)
      Retrieve a calling convention name by name.
      Parameters:
      name - name
      Returns:
      matching calling convention name, or UNKNOWN
    • valueOf

      public static CallingConventionName valueOf(int id)
      Retrieve a calling convention name by id.
      Parameters:
      id - id
      Returns:
      matching calling convention name, or UNKNOWN
    • register

      public static CallingConventionName register(int id, String name)
      Register a calling convention name.
      Parameters:
      id - id
      name - name
      Returns:
      registered calling convention name
    • unregister

      public static boolean unregister(String name)
      Unregister a non-built-in calling convention name.
      Parameters:
      name - name
      Returns:
      true if the name was unregistered
    • find

      public static CallingConventionName find(String name)
      Convenience method used to retrieve an enumerated constant by loose name.
      Parameters:
      name - a calling convention name, in any case, may or may not start with underscores, etc.
      Returns:
      null if not found