Class ConstantPool
java.lang.Object
com.strobel.reflection.emit.ConstantPool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic final classstatic final classstatic final classstatic classprivate static final classstatic final classstatic classstatic final classstatic final classstatic classstatic classstatic enumstatic final classstatic enumstatic final classstatic final classstatic interfaceprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashMap<ConstantPool.Key, ConstantPool.Entry> private final ConstantPool.Keyprivate final ConstantPool.Keyprivate final ArrayList<ConstantPool.Entry> private intprivate static final ConstantPool.Writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(int index) get(int index, ConstantPool.Tag expectedType) getDoubleConstant(double value) getFieldReference(FieldInfo field) getFloatConstant(float value) getIntegerConstant(int value) (package private) ConstantPool.InvokeDynamicInfogetInvokeDynamicInfo(int bootstrapMethodAttributeIndex, int nameAndTypeDescriptorIndex) getLongConstant(long value) (package private) ConstantPool.MethodHandlegetMethodHandle(ConstantPool.ReferenceKind referenceKind, int referenceIndex) getMethodReference(MethodBase method) (package private) ConstantPool.MethodTypegetMethodType(int descriptorIndex) (package private) ConstantPool.NameAndTypeDescriptorgetNameAndTypeDescriptor(String name, String typeDescriptor) getStringConstant(String value) getTypeInfo(Type<?> type) getUtf8StringConstant(String value) voidwrite(CodeStream stream)
-
Field Details
-
WRITER
-
_pool
-
_entryMap
-
_lookupKey
-
_newKey
-
_size
private int _size -
referencedInnerTypes
-
-
Constructor Details
-
ConstantPool
ConstantPool()
-
-
Method Details
-
write
-
get
-
get
-
getUtf8StringConstant
-
getStringConstant
-
getIntegerConstant
-
getFloatConstant
-
getLongConstant
-
getDoubleConstant
-
getTypeInfo
-
getFieldReference
-
getMethodReference
-
getInterfaceMethodReference
-
getNameAndTypeDescriptor
-
getMethodHandle
ConstantPool.MethodHandle getMethodHandle(ConstantPool.ReferenceKind referenceKind, int referenceIndex) -
getMethodType
-
getInvokeDynamicInfo
ConstantPool.InvokeDynamicInfo getInvokeDynamicInfo(int bootstrapMethodAttributeIndex, int nameAndTypeDescriptorIndex)
-