Class ConstantPool
java.lang.Object
com.strobel.core.Freezable
com.strobel.assembler.ir.ConstantPool
- All Implemented Interfaces:
IFreezable, Iterable<ConstantPool.Entry>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic classstatic final classstatic final classstatic final classstatic final classstatic classprivate static final classstatic final classstatic classstatic final classstatic final classstatic classstatic 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 int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ConstantPool.Visitor visitor) get(int index) get(int index, ConstantPool.Tag expectedType) getDoubleConstant(double value) <T extends ConstantPool.Entry>
TgetEntry(int index) getFieldReference(FieldReference field) getFloatConstant(float value) getIntegerConstant(int value) (package private) ConstantPool.InvokeDynamicInfoEntrygetInvokeDynamicInfo(int bootstrapMethodAttributeIndex, int nameAndTypeDescriptorIndex) getLongConstant(long value) (package private) ConstantPool.MethodHandleEntrygetMethodHandle(ConstantPool.ReferenceKind referenceKind, int referenceIndex) getMethodReference(MethodReference method) (package private) ConstantPool.MethodTypeEntrygetMethodType(int descriptorIndex) (package private) ConstantPool.NameAndTypeDescriptorEntrygetNameAndTypeDescriptor(String name, String typeDescriptor) getStringConstant(String value) getTypeInfo(TypeReference type) getUtf8StringConstant(String value) iterator()<T> TlookupConstant(int index) doublelookupDoubleConstant(int index) floatlookupFloatConstant(int index) intlookupIntegerConstant(int index) longlookupLongConstant(int index) lookupStringConstant(int index) lookupUtf8Constant(int index) static ConstantPoolvoidMethods inherited from class Freezable
canFreeze, freeze, freezeCore, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
_pool
-
_entryMap
-
_lookupKey
-
_newKey
-
_size
private int _size
-
-
Constructor Details
-
ConstantPool
public ConstantPool()
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<ConstantPool.Entry>
-
accept
-
write
-
getEntry
-
get
-
get
-
lookupStringConstant
-
lookupUtf8Constant
-
lookupConstant
public <T> T lookupConstant(int index) -
lookupIntegerConstant
public int lookupIntegerConstant(int index) -
lookupLongConstant
public long lookupLongConstant(int index) -
lookupFloatConstant
public float lookupFloatConstant(int index) -
lookupDoubleConstant
public double lookupDoubleConstant(int index) -
getUtf8StringConstant
-
getStringConstant
-
getIntegerConstant
-
getFloatConstant
-
getLongConstant
-
getDoubleConstant
-
getTypeInfo
-
getFieldReference
-
getMethodReference
-
getInterfaceMethodReference
public ConstantPool.InterfaceMethodReferenceEntry getInterfaceMethodReference(MethodReference method) -
getNameAndTypeDescriptor
ConstantPool.NameAndTypeDescriptorEntry getNameAndTypeDescriptor(String name, String typeDescriptor) -
getMethodHandle
ConstantPool.MethodHandleEntry getMethodHandle(ConstantPool.ReferenceKind referenceKind, int referenceIndex) -
getMethodType
-
getInvokeDynamicInfo
ConstantPool.InvokeDynamicInfoEntry getInvokeDynamicInfo(int bootstrapMethodAttributeIndex, int nameAndTypeDescriptorIndex) -
read
-