public class ConstantPool extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstantPool.AbstractDynamicInfo |
static class |
ConstantPool.AbstractRefInfo |
static class |
ConstantPool.ClassInfo |
static class |
ConstantPool.DynamicInfo |
static class |
ConstantPool.FieldrefInfo |
static interface |
ConstantPool.Info |
static class |
ConstantPool.InterfaceMethodrefInfo |
static class |
ConstantPool.InvokeDynamicInfo |
static class |
ConstantPool.MethodHandleInfo |
static class |
ConstantPool.MethodrefInfo |
static class |
ConstantPool.MethodTypeInfo |
static class |
ConstantPool.ModuleInfo |
static class |
ConstantPool.NameAndTypeInfo |
static class |
ConstantPool.PackageInfo |
static interface |
ConstantPool.RefInfoFunction |
static class |
ConstantPool.StringInfo |
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTANT_Class |
static int |
CONSTANT_Double |
static int |
CONSTANT_Dynamic |
static int |
CONSTANT_Fieldref |
static int |
CONSTANT_Float |
static int |
CONSTANT_Integer |
static int |
CONSTANT_InterfaceMethodref |
static int |
CONSTANT_InvokeDynamic |
static int |
CONSTANT_Long |
static int |
CONSTANT_MethodHandle |
static int |
CONSTANT_Methodref |
static int |
CONSTANT_MethodType |
static int |
CONSTANT_Module |
static int |
CONSTANT_NameAndType |
static int |
CONSTANT_Package |
static int |
CONSTANT_String |
static int |
CONSTANT_Utf8 |
| Constructor and Description |
|---|
ConstantPool(Object[] pool) |
| Modifier and Type | Method and Description |
|---|---|
protected <I> int |
add(Class<I> infoType,
Supplier<I> supplier) |
int |
classInfo(String class_name) |
String |
className(int class_info_index) |
int |
doubleInfo(double constant) |
int |
doubleInfo(Double constant) |
int |
dynamicInfo(int bootstrap_method_attr_index,
String name,
String descriptor) |
<T> T |
entry(int index) |
int |
fieldrefInfo(String class_name,
String name,
String descriptor) |
int |
floatInfo(float constant) |
int |
floatInfo(Float constant) |
protected <I> int |
index(Class<I> infoType,
Predicate<I> match,
Supplier<I> supplier) |
int |
integerInfo(Boolean constant) |
int |
integerInfo(Byte constant) |
int |
integerInfo(Character constant) |
int |
integerInfo(int constant) |
int |
integerInfo(Integer constant) |
int |
integerInfo(Short constant) |
int |
interfaceMethodrefInfo(String class_name,
String name,
String descriptor) |
int |
invokeDynamicInfo(int bootstrap_method_attr_index,
String name,
String descriptor) |
int |
longInfo(long constant) |
int |
longInfo(Long constant) |
int |
methodHandleInfo(int reference_kind,
String class_name,
String name,
String descriptor,
ConstantPool.RefInfoFunction refInfoFunction) |
int |
methodrefInfo(String class_name,
String name,
String descriptor) |
int |
methodTypeInfo(String descriptor) |
int |
moduleInfo(String module_name) |
String |
moduleName(int module_info_index) |
int |
nameAndTypeInfo(String name,
String descriptor) |
int |
packageInfo(String package_name) |
String |
packageName(int package_info_index) |
static ConstantPool |
read(DataInput in) |
int |
size() |
String |
string(int string_info_index) |
int |
stringInfo(String string) |
int |
tag(int index) |
String |
toString() |
String |
utf8(int utf8_index) |
int |
utf8Info(String utf8) |
void |
write(DataOutput out) |
public static final int CONSTANT_Utf8
public static final int CONSTANT_Integer
public static final int CONSTANT_Float
public static final int CONSTANT_Long
public static final int CONSTANT_Double
public static final int CONSTANT_Class
public static final int CONSTANT_String
public static final int CONSTANT_Fieldref
public static final int CONSTANT_Methodref
public static final int CONSTANT_InterfaceMethodref
public static final int CONSTANT_NameAndType
public static final int CONSTANT_MethodHandle
public static final int CONSTANT_MethodType
public static final int CONSTANT_Dynamic
public static final int CONSTANT_InvokeDynamic
public static final int CONSTANT_Module
public static final int CONSTANT_Package
public ConstantPool(Object[] pool)
public int size()
public <T> T entry(int index)
public int tag(int index)
public String utf8(int utf8_index)
public String className(int class_info_index)
public String moduleName(int module_info_index)
public String packageName(int package_info_index)
public String string(int string_info_index)
public static ConstantPool read(DataInput in) throws IOException
IOExceptionpublic int integerInfo(int constant)
public int integerInfo(Integer constant)
public int integerInfo(Byte constant)
public int integerInfo(Character constant)
public int integerInfo(Short constant)
public int integerInfo(Boolean constant)
public int longInfo(Long constant)
public int longInfo(long constant)
public int floatInfo(Float constant)
public int floatInfo(float constant)
public int doubleInfo(Double constant)
public int doubleInfo(double constant)
public int utf8Info(String utf8)
public int stringInfo(String string)
public int moduleInfo(String module_name)
public int packageInfo(String package_name)
public int classInfo(String class_name)
public int interfaceMethodrefInfo(String class_name, String name, String descriptor)
public int methodHandleInfo(int reference_kind,
String class_name,
String name,
String descriptor,
ConstantPool.RefInfoFunction refInfoFunction)
public int methodTypeInfo(String descriptor)
public int invokeDynamicInfo(int bootstrap_method_attr_index,
String name,
String descriptor)
public void write(DataOutput out) throws IOException
IOExceptionCopyright © 2021. All rights reserved.