Package com.strobel.assembler.ir
Class ConstantPool.Entry
- java.lang.Object
-
- com.strobel.assembler.ir.ConstantPool.Entry
-
- Direct Known Subclasses:
ConstantPool.ConstantEntry
,ConstantPool.InvokeDynamicInfoEntry
,ConstantPool.MethodHandleEntry
,ConstantPool.MethodTypeEntry
,ConstantPool.NameAndTypeDescriptorEntry
,ConstantPool.ReferenceEntry
,ConstantPool.TypeInfoEntry
- Enclosing class:
- ConstantPool
public abstract static class ConstantPool.Entry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
index
protected ConstantPool
owner
-
Constructor Summary
Constructors Constructor Description Entry(ConstantPool owner)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(ConstantPool.Visitor visitor)
abstract int
byteLength()
(package private) abstract void
fixupKey(ConstantPool.Key key)
abstract ConstantPool.Tag
getTag()
int
size()
The number of slots in the constant pool used by this entry.
-
-
-
Field Detail
-
index
public final int index
-
owner
protected final ConstantPool owner
-
-
Constructor Detail
-
Entry
Entry(ConstantPool owner)
-
-
Method Detail
-
fixupKey
abstract void fixupKey(ConstantPool.Key key)
-
getTag
public abstract ConstantPool.Tag getTag()
-
size
public int size()
The number of slots in the constant pool used by this entry. 2 for DoubleConstantEntry and LongConstantEntry; 1 for everything else.
-
byteLength
public abstract int byteLength()
-
accept
public abstract void accept(ConstantPool.Visitor visitor)
-
-