Package com.strobel.reflection.emit
Class ConstantPool
java.lang.Object
com.strobel.reflection.emit.ConstantPool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
static final class
static final class
static final class
static final class
static class
private static final class
static final class
static class
static final class
static final class
static class
static class
static enum
static final class
static enum
static final class
static final class
static interface
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashMap
<ConstantPool.Key, ConstantPool.Entry> private final ConstantPool.Key
private final ConstantPool.Key
private final ArrayList
<ConstantPool.Entry> private int
private 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.InvokeDynamicInfo
getInvokeDynamicInfo
(int bootstrapMethodAttributeIndex, int nameAndTypeDescriptorIndex) getLongConstant
(long value) (package private) ConstantPool.MethodHandle
getMethodHandle
(ConstantPool.ReferenceKind referenceKind, int referenceIndex) getMethodReference
(MethodBase method) (package private) ConstantPool.MethodType
getMethodType
(int descriptorIndex) (package private) ConstantPool.NameAndTypeDescriptor
getNameAndTypeDescriptor
(String name, String typeDescriptor) getStringConstant
(String value) getTypeInfo
(Type<?> type) getUtf8StringConstant
(String value) void
write
(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)
-