Class OpcodeTables

java.lang.Object
org.openjdk.asmtools.jasm.OpcodeTables

public class OpcodeTables extends Object
OpcodeTables

The OpcodeTables class follows a Singleton Pattern. This class contains Enums, that are contained in private hash maps (lookup tables and reverse lookup tables). These hash maps all have public accessors, which clients use to look-up opcodes.

Tokens in this table carry no external state, and are typically treated as constants. They do not need to be reset.

  • Field Details

    • MAX_TABLESWITCH_LENGTH

      public static int MAX_TABLESWITCH_LENGTH
    • MAX_LOOKUPSWITCH_LENGTH

      public static int MAX_LOOKUPSWITCH_LENGTH
    • MAX_LOOKUPSWITCH_PAIRS_COUNT

      public static int MAX_LOOKUPSWITCH_PAIRS_COUNT
    • MaxOpcodes

      private static final int MaxOpcodes
      Initialized keyword and token Hash Maps (and Reverse Tables)
      See Also:
    • IntToAllOpcodes

      private static final HashMap<Integer, OpcodeTables.Opcode> IntToAllOpcodes
    • Mnemocodes

      private static final HashMap<String, OpcodeTables.Opcode> Mnemocodes
  • Constructor Details

    • OpcodeTables

      public OpcodeTables()
  • Method Details