sun.tools.javap
Class Tables

java.lang.Object
  extended by sun.tools.javap.Tables
All Implemented Interfaces:
Constants, RuntimeConstants

public class Tables
extends java.lang.Object
implements Constants


Field Summary
(package private) static java.util.Vector<java.lang.String> keywordNames
          Initialized keyword and token Hashtables
(package private) static java.util.Hashtable<java.lang.String,java.lang.Integer> keywords
           
private static java.util.Vector<java.lang.String> mapTypeNames
          Define MapTypes table.
private static java.util.Hashtable<java.lang.String,java.lang.Integer> MapTypes
           
(package private) static java.util.Hashtable<java.lang.String,java.lang.Integer> mnemocodes
          Define mnemocodes table.
(package private) static java.lang.String[] opcExtNamesTab
           
(package private) static java.lang.String[] opcPrivExtNamesTab
           
private static java.util.Vector<java.lang.String> tagNames
          Define tag table.
private static java.util.Hashtable<java.lang.String,java.lang.Integer> Tags
           
private static java.util.Vector<java.lang.String> typeNames
          Define type table.
private static java.util.Hashtable<java.lang.String,java.lang.Integer> Types
           
 
Fields inherited from interface sun.tools.javap.Constants
ABSTRACT, ADD, AND, ARRAY, ARRAYACCESS, ASGADD, ASGBITAND, ASGBITOR, ASGBITXOR, ASGDIV, ASGLSHIFT, ASGMUL, ASGREM, ASGRSHIFT, ASGSUB, ASGURSHIFT, ASSIGN, ATT_ALL, ATT_CODE, BITAND, BITNOT, BITOR, BITS, BITXOR, BOOLEAN, BOOLEANVAL, BREAK, BYTE, BYTEVAL, CASE, CAST, CATCH, CHAR, CHARVAL, CLASS, COLON, COMMA, COMMENT, COND, CONST, CONTINUE, CONVERT, CPINDEX, CPNAME, CS_BINARY, CS_COMPILED, CS_NOTFOUND, CS_PARSED, CS_SOURCE, CS_UNDECIDED, CS_UNDEFINED, DEC, DECLARATION, DEFAULT, DIV, DO, DOUBLE, DOUBLEVAL, ELSE, EOF, EQ, ERROR, EXPR, EXPRESSION, EXTENDS, F_DEBUG, F_DEPENDENCIES, F_DUMP, F_OPTIMIZE, F_VERBOSE, F_WARNINGS, FALSE, FIELD, FIELDREF, FINAL, FINALLY, FLOAT, FLOATVAL, FOR, GE, GOTO, GT, IDENT, IF, IMPLEMENTS, IMPORT, INC, INF, INLINEMETHOD, INLINENEWINSTANCE, INLINERETURN, INNERCLASS, INSTANCEOF, INT, INTERFACE, INTVAL, LBRACE, LE, LENGTH, LOCAL, LONG, LONGVAL, LPAREN, LSHIFT, LSQBRACKET, LT, MAXFILESIZE, MAXLINENUMBER, METHOD, METHODREF, MUL, NAN, NATIVE, NE, NEG, NEW, NEWARRAY, NEWFROMNAME, NEWINSTANCE, NOT, NULL, OF, OFFSETBITS, opNames, opPrecedence, OR, PACKAGE, POS, POSTDEC, POSTINC, PREDEC, PREINC, PRIVATE, PROTECTED, PUBLIC, QUESTIONMARK, RBRACE, REM, RETURN, RPAREN, RSHIFT, RSQBRACKET, SEMICOLON, SHORT, SHORTVAL, SIGN, STACK, STAT, STATIC, STRICT, STRINGVAL, SUB, SUPER, SWITCH, SYNCHRONIZED, SYNTHETIC, TC_ARRAY, TC_BOOLEAN, TC_BYTE, TC_CHAR, TC_CLASS, TC_DOUBLE, TC_ERROR, TC_FLOAT, TC_INT, TC_LONG, TC_METHOD, TC_NULL, TC_SHORT, TC_VOID, THIS, THROW, THROWS, TM_ARRAY, TM_BOOLEAN, TM_BYTE, TM_CHAR, TM_CLASS, TM_DOUBLE, TM_ERROR, TM_FLOAT, TM_INT, TM_INT32, TM_INTEGER, TM_LONG, TM_METHOD, TM_NULL, TM_NUM32, TM_NUM64, TM_NUMBER, TM_REAL, TM_REFERENCE, TM_SHORT, TM_VOID, TRANSIENT, TRUE, TRY, TYPE, URSHIFT, VARDECLARATION, VOID, VOLATILE, WHILE
 
Fields inherited from interface sun.tools.javap.RuntimeConstants
ACC_ABSTRACT, ACC_EXPLICIT, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VOLATILE, CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELD, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACEMETHOD, CONSTANT_LONG, CONSTANT_METHOD, CONSTANT_NAMEANDTYPE, CONSTANT_STRING, CONSTANT_UNICODE, CONSTANT_UTF8, FULL_FRAME, ITEM_Bogus, ITEM_Double, ITEM_Float, ITEM_InitObject, ITEM_Integer, ITEM_Long, ITEM_NewObject, ITEM_Null, ITEM_Object, JAVA_MAGIC, JAVA_MINOR_VERSION, JAVA_VERSION, opc_aaload, opc_aastore, opc_aconst_null, opc_aload, opc_aload_0, opc_aload_1, opc_aload_2, opc_aload_3, opc_aload_w, opc_anewarray, opc_areturn, opc_arraylength, opc_astore, opc_astore_0, opc_astore_1, opc_astore_2, opc_astore_3, opc_astore_w, opc_athrow, opc_baload, opc_bastore, opc_bipush, opc_bytecode, opc_caload, opc_castore, opc_catch, opc_checkcast, opc_d2f, opc_d2i, opc_d2l, opc_dadd, opc_daload, opc_dastore, opc_dcmpg, opc_dcmpl, opc_dconst_0, opc_dconst_1, opc_ddiv, opc_dead, opc_dload, opc_dload_0, opc_dload_1, opc_dload_2, opc_dload_3, opc_dload_w, opc_dmul, opc_dneg, opc_drem, opc_dreturn, opc_dstore, opc_dstore_0, opc_dstore_1, opc_dstore_2, opc_dstore_3, opc_dstore_w, opc_dsub, opc_dup, opc_dup_x1, opc_dup_x2, opc_dup2, opc_dup2_x1, opc_dup2_x2, opc_endtry, opc_endvar, opc_f2d, opc_f2i, opc_f2l, opc_fadd, opc_faload, opc_fastore, opc_fcmpg, opc_fcmpl, opc_fconst_0, opc_fconst_1, opc_fconst_2, opc_fdiv, opc_fload, opc_fload_0, opc_fload_1, opc_fload_2, opc_fload_3, opc_fload_w, opc_fmul, opc_fneg, opc_frem, opc_freturn, opc_fstore, opc_fstore_0, opc_fstore_1, opc_fstore_2, opc_fstore_3, opc_fstore_w, opc_fsub, opc_getfield, opc_getstatic, opc_goto, opc_goto_w, opc_i2b, opc_i2c, opc_i2d, opc_i2f, opc_i2l, opc_i2s, opc_iadd, opc_iaload, opc_iand, opc_iastore, opc_iconst_0, opc_iconst_1, opc_iconst_2, opc_iconst_3, opc_iconst_4, opc_iconst_5, opc_iconst_m1, opc_idiv, opc_if_acmpeq, opc_if_acmpne, opc_if_icmpeq, opc_if_icmpge, opc_if_icmpgt, opc_if_icmple, opc_if_icmplt, opc_if_icmpne, opc_ifeq, opc_ifge, opc_ifgt, opc_ifle, opc_iflt, opc_ifne, opc_ifnonnull, opc_ifnull, opc_iinc, opc_iinc_w, opc_iload, opc_iload_0, opc_iload_1, opc_iload_2, opc_iload_3, opc_iload_w, opc_imul, opc_ineg, opc_instanceof, opc_int2byte, opc_int2char, opc_int2short, opc_invokeinterface, opc_invokenonvirtual, opc_invokespecial, opc_invokestatic, opc_invokevirtual, opc_ior, opc_irem, opc_ireturn, opc_ishl, opc_ishr, opc_istore, opc_istore_0, opc_istore_1, opc_istore_2, opc_istore_3, opc_istore_w, opc_isub, opc_iushr, opc_ixor, opc_jsr, opc_jsr_w, opc_l2d, opc_l2f, opc_l2i, opc_label, opc_ladd, opc_laload, opc_land, opc_lastore, opc_lcmp, opc_lconst_0, opc_lconst_1, opc_ldc, opc_ldc_w, opc_ldc2_w, opc_ldiv, opc_lload, opc_lload_0, opc_lload_1, opc_lload_2, opc_lload_3, opc_lload_w, opc_lmul, opc_lneg, opc_localsmap, opc_lookupswitch, opc_lor, opc_lrem, opc_lreturn, opc_lshl, opc_lshr, opc_lstore, opc_lstore_0, opc_lstore_1, opc_lstore_2, opc_lstore_3, opc_lstore_w, opc_lsub, opc_lushr, opc_lxor, opc_monitorenter, opc_monitorexit, opc_multianewarray, opc_new, opc_newarray, opc_nonpriv, opc_nop, opc_pop, opc_pop2, opc_priv, opc_putfield, opc_putstatic, opc_ret, opc_ret_w, opc_return, opc_saload, opc_sastore, opc_sipush, opc_stackmap, opc_swap, opc_tableswitch, opc_try, opc_var, opc_wide, opcLengthsTab, opcNamesTab, SAME_FRAME_BOUND, SAME_FRAME_EXTENDED, SAME_LOCALS_1_STACK_ITEM_BOUND, SAME_LOCALS_1_STACK_ITEM_EXTENDED, SIG_ARRAY, SIG_BOOLEAN, SIG_BYTE, SIG_CHAR, SIG_CLASS, SIG_DOUBLE, SIG_ENDCLASS, SIG_ENDMETHOD, SIG_FLOAT, SIG_INT, SIG_LONG, SIG_METHOD, SIG_PACKAGE, SIG_SHORT, SIG_VOID, SIGC_ARRAY, SIGC_BOOLEAN, SIGC_BYTE, SIGC_CHAR, SIGC_CLASS, SIGC_DOUBLE, SIGC_ENDCLASS, SIGC_ENDMETHOD, SIGC_FLOAT, SIGC_INT, SIGC_LONG, SIGC_METHOD, SIGC_PACKAGE, SIGC_SHORT, SIGC_VOID, T_BOOLEAN, T_BYTE, T_CHAR, T_CLASS, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_SHORT
 
Constructor Summary
Tables()
           
 
Method Summary
(package private) static void defineExt(int opc, java.lang.String mnem)
           
private static void defineKeyword(java.lang.String id, int token)
           
private static void defineKeywordName(java.lang.String id, int token)
           
private static void defineMapType(java.lang.String id, int val)
           
(package private) static void defineNonPriv(int opc, java.lang.String mnem)
           
(package private) static void definePriv(int opc, java.lang.String mnem)
           
private static void defineTag(java.lang.String id, int val)
           
private static void defineType(java.lang.String id, int val)
           
static int keyword(java.lang.String idValue)
           
static java.lang.String keywordName(int token)
           
static java.lang.String mapTypeName(int type)
           
static int mapTypeValue(java.lang.String idValue)
           
static int opcLength(int opc)
           
static java.lang.String opcName(int opc)
           
static int opcode(java.lang.String mnem)
           
static java.lang.String tagName(int tag)
           
static int tagValue(java.lang.String idValue)
           
static java.lang.String typeName(int type)
           
static int typeValue(java.lang.String idValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mnemocodes

static java.util.Hashtable<java.lang.String,java.lang.Integer> mnemocodes
Define mnemocodes table.


opcExtNamesTab

static java.lang.String[] opcExtNamesTab

opcPrivExtNamesTab

static java.lang.String[] opcPrivExtNamesTab

keywordNames

static java.util.Vector<java.lang.String> keywordNames
Initialized keyword and token Hashtables


keywords

static java.util.Hashtable<java.lang.String,java.lang.Integer> keywords

tagNames

private static java.util.Vector<java.lang.String> tagNames
Define tag table.


Tags

private static java.util.Hashtable<java.lang.String,java.lang.Integer> Tags

typeNames

private static java.util.Vector<java.lang.String> typeNames
Define type table. These types used in "newarray" instruction only.


Types

private static java.util.Hashtable<java.lang.String,java.lang.Integer> Types

mapTypeNames

private static java.util.Vector<java.lang.String> mapTypeNames
Define MapTypes table. These constants used in stackmap tables only.


MapTypes

private static java.util.Hashtable<java.lang.String,java.lang.Integer> MapTypes
Constructor Detail

Tables

public Tables()
Method Detail

defineNonPriv

static void defineNonPriv(int opc,
                          java.lang.String mnem)

definePriv

static void definePriv(int opc,
                       java.lang.String mnem)

defineExt

static void defineExt(int opc,
                      java.lang.String mnem)

opcLength

public static int opcLength(int opc)
                     throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException

opcName

public static java.lang.String opcName(int opc)

opcode

public static int opcode(java.lang.String mnem)

defineKeywordName

private static void defineKeywordName(java.lang.String id,
                                      int token)

keywordName

public static java.lang.String keywordName(int token)

keyword

public static int keyword(java.lang.String idValue)

defineKeyword

private static void defineKeyword(java.lang.String id,
                                  int token)

defineTag

private static void defineTag(java.lang.String id,
                              int val)

tagName

public static java.lang.String tagName(int tag)

tagValue

public static int tagValue(java.lang.String idValue)

defineType

private static void defineType(java.lang.String id,
                               int val)

typeValue

public static int typeValue(java.lang.String idValue)

typeName

public static java.lang.String typeName(int type)

defineMapType

private static void defineMapType(java.lang.String id,
                                  int val)

mapTypeValue

public static int mapTypeValue(java.lang.String idValue)

mapTypeName

public static java.lang.String mapTypeName(int type)