Package org.htmlunit.corejs.classfile
Class ConstantPool
java.lang.Object
org.htmlunit.corejs.classfile.ConstantPool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClassFileWriter(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byte(package private) static final byteprivate static final intprivate ObjToIntMapprivate UintMapprivate ObjToIntMapprivate ObjToIntMapprivate ObjToIntMapprivate byte[]private UintMapprivate UintMapprivate intprivate intprivate ObjToIntMapprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) short(package private) intaddConstant(double k) (package private) intaddConstant(float k) (package private) intaddConstant(int k) (package private) intaddConstant(long k) (package private) intaddConstant(Object value) (package private) int(package private) shortaddFieldRef(String className, String fieldName, String fieldType) (package private) shortaddInterfaceMethodRef(String className, String methodName, String methodType) (package private) shortaddInvokeDynamic(String methodName, String methodType, int bootstrapIndex) (package private) short(package private) shortaddMethodRef(String className, String methodName, String methodType) private shortaddNameAndType(String name, String type) (package private) shortprivate voidensure(int howMuch) (package private) ObjectgetConstantData(int index) (package private) bytegetConstantType(int index) (package private) intgetUtfEncodingLimit(String s, int start, int end) Get maximum i such thatstart invalid input: '<'= i invalid input: '<'= endands.substring(start, i)fits JVM UTF string encoding limit.(package private) int(package private) boolean(package private) voidsetConstantData(int index, Object data) (package private) intwrite(byte[] data, int offset)
-
Field Details
-
ConstantPoolSize
private static final int ConstantPoolSize- See Also:
-
CONSTANT_Class
static final byte CONSTANT_Class- See Also:
-
CONSTANT_Fieldref
static final byte CONSTANT_Fieldref- See Also:
-
CONSTANT_Methodref
static final byte CONSTANT_Methodref- See Also:
-
CONSTANT_InterfaceMethodref
static final byte CONSTANT_InterfaceMethodref- See Also:
-
CONSTANT_String
static final byte CONSTANT_String- See Also:
-
CONSTANT_Integer
static final byte CONSTANT_Integer- See Also:
-
CONSTANT_Float
static final byte CONSTANT_Float- See Also:
-
CONSTANT_Long
static final byte CONSTANT_Long- See Also:
-
CONSTANT_Double
static final byte CONSTANT_Double- See Also:
-
CONSTANT_NameAndType
static final byte CONSTANT_NameAndType- See Also:
-
CONSTANT_Utf8
static final byte CONSTANT_Utf8- See Also:
-
CONSTANT_MethodType
static final byte CONSTANT_MethodType- See Also:
-
CONSTANT_MethodHandle
static final byte CONSTANT_MethodHandle- See Also:
-
CONSTANT_InvokeDynamic
static final byte CONSTANT_InvokeDynamic- See Also:
-
cfw
-
MAX_UTF_ENCODING_SIZE
private static final int MAX_UTF_ENCODING_SIZE- See Also:
-
itsStringConstHash
-
itsUtf8Hash
-
itsFieldRefHash
-
itsMethodRefHash
-
itsClassHash
-
itsConstantHash
-
itsTop
private int itsTop -
itsTopIndex
private int itsTopIndex -
itsConstantData
-
itsPoolTypes
-
itsPool
private byte[] itsPool
-
-
Constructor Details
-
ConstantPool
ConstantPool(ClassFileWriter cfw)
-
-
Method Details
-
write
int write(byte[] data, int offset) -
getWriteSize
int getWriteSize() -
addConstant
int addConstant(int k) -
addConstant
int addConstant(long k) -
addConstant
int addConstant(float k) -
addConstant
int addConstant(double k) -
addConstant
-
addConstant
-
isUnderUtfEncodingLimit
-
getUtfEncodingLimit
Get maximum i such thatstart invalid input: '<'= i invalid input: '<'= endands.substring(start, i)fits JVM UTF string encoding limit. -
addUtf8
-
addNameAndType
-
addClass
-
addFieldRef
-
addMethodRef
-
addInterfaceMethodRef
-
addInvokeDynamic
-
addMethodHandle
-
getConstantData
-
setConstantData
-
getConstantType
byte getConstantType(int index) -
ensure
private void ensure(int howMuch)
-