类 Symbol


  • abstract class Symbol
    extends java.lang.Object
    Copy from ASM, with less modifications An entry of the constant pool, of the BootstrapMethods attribute, or of the (ASM specific) type table of a class.
    作者:
    Eric Bruneton
    另请参阅:
    JVMS 4.4, JVMS 4.7.23
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      (专用程序包) static int BOOTSTRAP_METHOD_TAG
      The tag value of the BootstrapMethods attribute entries.
      (专用程序包) static int CONSTANT_CLASS_TAG
      The tag value of CONSTANT_Class_info JVMS structures.
      (专用程序包) static int CONSTANT_DOUBLE_TAG
      The tag value of CONSTANT_Double_info JVMS structures.
      (专用程序包) static int CONSTANT_DYNAMIC_TAG
      The tag value of CONSTANT_Dynamic_info JVMS structures.
      (专用程序包) static int CONSTANT_FIELDREF_TAG
      The tag value of CONSTANT_Fieldref_info JVMS structures.
      (专用程序包) static int CONSTANT_FLOAT_TAG
      The tag value of CONSTANT_Float_info JVMS structures.
      (专用程序包) static int CONSTANT_INTEGER_TAG
      The tag value of CONSTANT_Integer_info JVMS structures.
      (专用程序包) static int CONSTANT_INTERFACE_METHODREF_TAG
      The tag value of CONSTANT_InterfaceMethodref_info JVMS structures.
      (专用程序包) static int CONSTANT_INVOKE_DYNAMIC_TAG
      The tag value of CONSTANT_InvokeDynamic_info JVMS structures.
      (专用程序包) static int CONSTANT_LONG_TAG
      The tag value of CONSTANT_Long_info JVMS structures.
      (专用程序包) static int CONSTANT_METHOD_HANDLE_TAG
      The tag value of CONSTANT_MethodHandle_info JVMS structures.
      (专用程序包) static int CONSTANT_METHOD_TYPE_TAG
      The tag value of CONSTANT_MethodType_info JVMS structures.
      (专用程序包) static int CONSTANT_METHODREF_TAG
      The tag value of CONSTANT_Methodref_info JVMS structures.
      (专用程序包) static int CONSTANT_MODULE_TAG
      The tag value of CONSTANT_Module_info JVMS structures.
      (专用程序包) static int CONSTANT_NAME_AND_TYPE_TAG
      The tag value of CONSTANT_NameAndType_info JVMS structures.
      (专用程序包) static int CONSTANT_PACKAGE_TAG
      The tag value of CONSTANT_Package_info JVMS structures.
      (专用程序包) static int CONSTANT_STRING_TAG
      The tag value of CONSTANT_String_info JVMS structures.
      (专用程序包) static int CONSTANT_UTF8_TAG
      The tag value of CONSTANT_Utf8_info JVMS structures.
      (专用程序包) long data
      The numeric value of this symbol.
      (专用程序包) int index
      The index of this symbol in the constant pool, in the BootstrapMethods attribute, or in the (ASM specific) type table of a class (depending on the tag value).
      (专用程序包) int info
      Additional information about this symbol, generally computed lazily.
      (专用程序包) static int MERGED_TYPE_TAG
      The tag value of a merged type entry in the (ASM specific) type table of a class.
      (专用程序包) java.lang.String name
      The name of the class field or method corresponding to this symbol.
      (专用程序包) java.lang.String owner
      The internal name of the owner class of this symbol.
      (专用程序包) int tag
      A tag indicating the type of this symbol.
      (专用程序包) static int TYPE_TAG
      The tag value of a normal type entry in the (ASM specific) type table of a class.
      (专用程序包) static int UNINITIALIZED_TYPE_TAG  
      (专用程序包) java.lang.String value
      The string value of this symbol.
    • 构造器概要

      构造器 
      构造器 说明
      Symbol​(int index, int tag, java.lang.String owner, java.lang.String name, java.lang.String value, long data)
      Constructs a new Symbol.
    • 方法概要

      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Symbol

        Symbol​(int index,
               int tag,
               java.lang.String owner,
               java.lang.String name,
               java.lang.String value,
               long data)
        Constructs a new Symbol. This constructor can't be used directly because the Symbol class is abstract. Instead, use the factory methods of the class.
        参数:
        index - the symbol index in the constant pool, in the BootstrapMethods attribute, or in the (ASM specific) type table of a class (depending on 'tag').
        tag - the symbol type. Must be one of the static tag values defined in this class.
        owner - The internal name of the symbol's owner class. Maybe null.
        name - The name of the symbol's corresponding class field or method. Maybe null.
        value - The string value of this symbol. Maybe null.
        data - The numeric value of this symbol.