public final class ConstantPool extends com.strobel.core.Freezable implements java.lang.Iterable<ConstantPool.Entry>
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstantPool.ConstantEntry |
static class |
ConstantPool.DoubleConstantEntry |
static class |
ConstantPool.Entry |
static class |
ConstantPool.FieldReferenceEntry |
static class |
ConstantPool.FloatConstantEntry |
static class |
ConstantPool.IntegerConstantEntry |
static class |
ConstantPool.InterfaceMethodReferenceEntry |
static class |
ConstantPool.InvokeDynamicInfoEntry |
static class |
ConstantPool.LongConstantEntry |
static class |
ConstantPool.MethodHandleEntry |
static class |
ConstantPool.MethodReferenceEntry |
static class |
ConstantPool.MethodTypeEntry |
static class |
ConstantPool.NameAndTypeDescriptorEntry |
static class |
ConstantPool.ReferenceEntry |
static class |
ConstantPool.ReferenceKind |
static class |
ConstantPool.StringConstantEntry |
static class |
ConstantPool.Tag |
static class |
ConstantPool.TypeInfoEntry |
static class |
ConstantPool.Utf8StringConstantEntry |
static interface |
ConstantPool.Visitor |
| Constructor and Description |
|---|
ConstantPool() |
public java.util.Iterator<ConstantPool.Entry> iterator()
iterator in interface java.lang.Iterable<ConstantPool.Entry>public void accept(ConstantPool.Visitor visitor)
public void write(Buffer stream)
public <T extends ConstantPool.Entry> T getEntry(int index)
public ConstantPool.Entry get(int index)
public ConstantPool.Entry get(int index, ConstantPool.Tag expectedType)
public java.lang.String lookupStringConstant(int index)
public java.lang.String lookupUtf8Constant(int index)
public <T> T lookupConstant(int index)
public int lookupIntegerConstant(int index)
public long lookupLongConstant(int index)
public float lookupFloatConstant(int index)
public double lookupDoubleConstant(int index)
public ConstantPool.Utf8StringConstantEntry getUtf8StringConstant(java.lang.String value)
public ConstantPool.StringConstantEntry getStringConstant(java.lang.String value)
public ConstantPool.IntegerConstantEntry getIntegerConstant(int value)
public ConstantPool.FloatConstantEntry getFloatConstant(float value)
public ConstantPool.LongConstantEntry getLongConstant(long value)
public ConstantPool.DoubleConstantEntry getDoubleConstant(double value)
public ConstantPool.TypeInfoEntry getTypeInfo(TypeReference type)
public ConstantPool.FieldReferenceEntry getFieldReference(FieldReference field)
public ConstantPool.MethodReferenceEntry getMethodReference(MethodReference method)
public ConstantPool.InterfaceMethodReferenceEntry getInterfaceMethodReference(MethodReference method)
public static ConstantPool read(Buffer b)