Additional top-level classes in compilation unit: ConstInfo, ConstInfoPadding, ClassInfo, NameAndTypeInfo, MemberrefInfo, FieldrefInfo, MethodrefInfo, InterfaceMethodrefInfo, StringInfo, IntegerInfo, FloatInfo, LongInfo, DoubleInfo, Utf8Info, MethodHandleInfo, MethodTypeInfo, InvokeDynamicInfo, DynamicInfo, ModuleInfo, PackageInfo.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | CONST_Class
|
| public static final int | CONST_Double
|
| public static final int | CONST_Dynamic
|
| public static final int | CONST_DynamicCallSite
|
| public static final int | CONST_Fieldref
|
| public static final int | CONST_Float
|
| public static final int | CONST_Integer
|
| public static final int | CONST_InterfaceMethodref
|
| public static final int | |
| public static final int | CONST_Long
|
| public static final int | CONST_MethodHandle
|
| public static final int | CONST_Methodref
|
| public static final int | CONST_MethodType
|
| public static final int | CONST_Module
|
| public static final int | CONST_NameAndType
|
| public static final int | CONST_Package
|
| public static final int | CONST_String
|
| public static final int | CONST_Utf8
|
| pack-priv LongVector | |
| pack-priv Map | |
| pack-priv int | |
| public static final int | REF_getField
|
| public static final int | REF_getStatic
|
| public static final int | REF_invokeInterface
|
| public static final int | REF_invokeSpecial
|
| public static final int | REF_invokeStatic
|
| public static final int | REF_invokeVirtual
|
| public static final int | REF_newInvokeSpecial
|
| public static final int | REF_putField
|
| public static final int | REF_putStatic
|
| public static final CtClass | THIS
Represents the class using this constant pool table. |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ConstPool(DataInputStream
byte stream. in)Constructs a constant pool table from the given byte stream. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the index of the added entry.Adds a new |
| public int | Returns: the index of the added entry.a fully-qualified class name
(or the JVM-internal representation of that name). qname)Adds a new |
| pack-priv int | |
| public int | Returns: the index of the added entry.Adds a new |
| public int | Returns: the index of the added entry.bootstrap_method_attr_index.name_and_type_index.Adds a new |
| public int | Returns: the index of the added entry.class_indexname_index
of CONSTANT_NameAndType_info.descriptor_index
of CONSTANT_NameAndType_info.Adds a new |
| public int | Returns: the index of the added entry.class_indexname_and_type_index.Adds a new |
| public int | Returns: the index of the added entry.Adds a new |
| public int | Returns: the index of the added entry.Adds a new |
| public int | Returns: the index of the added entry.class_indexname_index
of CONSTANT_NameAndType_info.descriptor_index
of CONSTANT_NameAndType_info.Adds a new |
| public int | Returns: the index of the added entry.class_indexname_and_type_index.Adds a new |
| public int | Returns: the index of the added entry.bootstrap_method_attr_index.name_and_type_index.Adds a new |
| private int | |
| private int | |
| public int | |
| public int | Returns: the index of the added entry.reference_kind
such as .reference_index.Adds a new |
| public int | Returns: the index of the added entry.class_indexname_index
of CONSTANT_NameAndType_info.descriptor_index
of CONSTANT_NameAndType_info.Adds a new |
| public int | Returns: the index of the added entry.class_indexname_and_type_index.Adds a new |
| public int | Returns: the index of the added entry.descriptor_index.Adds a new |
| public int | Returns: the index of the added entry.the index of the Utf8 entry. nameIndex)Adds a new |
| public int | Returns: the index of the added entry.name_indexdescriptor_indexAdds a new |
| public int | Returns: the index of the added entry.name_indexdescriptor_indexAdds a new |
| public int | Returns: the index of the added entry.the index of the Utf8 entry. nameIndex)Adds a new |
| public int | Returns: the index of the added entry.Adds a new |
| public int | Returns: the index of the added entry.Adds a new |
| public int | |
| public String | Returns: the name of the target class specified by the..._info structure
at index.
Otherwise, null if that structure does not
match the given member name and descriptor.the member name membername, String the descriptor of the member. desc, int the index into the constant pool table index)Determines whether |
| public String | Returns: a fully-qualified class or interface name specified byname_index. If the type is an array
type, this method returns an encoded name like
[Ljava.lang.Object; (note that the separators
are not slashes but dots).Reads |
| public String | Returns: the descriptor of the type specified byname_index.Reads |
| public String | |
| public Set | |
| public double | Returns: the value specified by this entry.Reads |
| public int | getDynamicBootstrap(int index)
Reads the |
| public int | getDynamicNameAndType(int index)
Reads the |
| public String | Returns: the descriptor of the bootstrap method.an index to a index)CONSTANT_Dynamic_info.Reads the |
| public int | getFieldrefClass(int index)
Reads the |
| public String | Returns: the name of the class at thatclass_index.Reads the |
| public String | Returns: the name of the field.an index to a index)CONSTANT_Fieldref_info.Reads the |
| public int | getFieldrefNameAndType(int index)
Reads the |
| public String | Returns: the type descriptor of the field.an index to a index)CONSTANT_Fieldref_info.Reads the |
| public float | Returns: the value specified by this entry.Reads |
| public int | Returns: the value specified by this entry.Reads |
| public int | getInterfaceMethodrefClass(int index)
Reads the |
| public String | Returns: the name of the class at thatclass_index.Reads the |
| public String | Returns: the name of the method.an index to
a index)CONSTANT_InterfaceMethodref_info.Reads the |
| public int | getInterfaceMethodrefNameAndType(int index)
Reads the |
| public String | Returns: the descriptor of the method.an index to
a index)CONSTANT_InterfaceMethodref_info.Reads the |
| public int | getInvokeDynamicBootstrap(int index)
Reads the |
| public int | getInvokeDynamicNameAndType(int index)
Reads the |
| public String | Returns: the descriptor of the bootstrap method.an index to a index)CONSTANT_InvokeDynamic_info.Reads the |
| pack-priv ConstInfo | |
| public Object | Returns: aString value or a wrapped primitive-type
value.Reads |
| public long | Returns: the value specified by this entry.Reads |
| public int | getMemberClass(int index)
Reads the |
| public int | getMemberNameAndType(int index)
Reads the |
| public int | getMethodHandleIndex(int index)
Reads the |
| public int | getMethodHandleKind(int index)
Reads the |
| public int | getMethodrefClass(int index)
Reads the |
| public String | Returns: the name of the class at thatclass_index.Reads the |
| public String | Returns: the name of the method.an index to a index)CONSTANT_Methodref_info.Reads the |
| public int | getMethodrefNameAndType(int index)
Reads the |
| public String | Returns: the descriptor of the method.an index to a index)CONSTANT_Methodref_info.Reads the |
| public int | getMethodTypeInfo(int index)
Reads the |
| public String | Returns: the module name atname_index.Reads the |
| public int | getNameAndTypeDescriptor(int index)
Reads the |
| public int | getNameAndTypeName(int index)
Reads the |
| public String | Returns: the package name atname_index. It is a slash-
separated name such as com/oracle/net.Reads the |
| public int | |
| public String | Returns: the string specified bystring_index.Reads |
| public int | Returns: eitherCONST_Class, CONST_Fieldref,
CONST_Methodref, or ...Returns the |
| public int | getThisClassInfo()
Returns the index of |
| public String | Returns: the string specified by this entry.Reads |
| public int | Returns: thedescriptor_index specifying
the type descriptor of the that constructor.
If it is not that constructor,
isConstructor() returns 0.Determines whether |
| public int | Returns: thedescriptor_index specifying
the type descriptor of that member.
If it is not that member,
isMember() returns 0.the class declaring the member classname, String the member name membername, int the index into the constant pool table index)Determines whether |
| private static Map | |
| public void | |
| public void | |
| pack-priv void | |
| private void | |
| private int | |
| public void | renameClass(String
the replaced name (JVM-internal representation). oldName, String the substituted name (JVM-internal representation). newName)Replaces all occurrences of a class name. |
| public void | renameClass(Map<String, String>
specifies pairs of replaced and substituted
name. classnames)Replaces all occurrences of class names. |
| pack-priv void | |
| public void |