Package com.strobel.assembler.ir
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 classstatic final classstatic classstatic final classstatic final classstatic classstatic classstatic classstatic classstatic enumstatic final classstatic enumstatic final classstatic final classstatic interface -
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) getLongConstant(long value) getMethodReference(MethodReference method) 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 com.strobel.core.Freezable
canFreeze, freeze, freezeCore, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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) -
read
-