Package com.strobel.reflection.emit
Class ConstantPool.Entry
- java.lang.Object
-
- com.strobel.reflection.emit.ConstantPool.Entry
-
- Direct Known Subclasses:
ConstantPool.DoubleConstant,ConstantPool.FloatConstant,ConstantPool.IntegerConstant,ConstantPool.InvokeDynamicInfo,ConstantPool.LongConstant,ConstantPool.MethodHandle,ConstantPool.MethodType,ConstantPool.NameAndTypeDescriptor,ConstantPool.ReferenceEntry,ConstantPool.StringConstant,ConstantPool.TypeInfo,ConstantPool.Utf8StringConstant
- Enclosing class:
- ConstantPool
public abstract static class ConstantPool.Entry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexprotected ConstantPoolowner
-
Constructor Summary
Constructors Constructor Description Entry(ConstantPool owner)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <R,D>
Raccept(ConstantPool.Visitor<R,D> visitor, D data)abstract intbyteLength()abstract ConstantPool.TaggetTag()intsize()The number of slots in the constant pool used by this entry.
-
-
-
Field Detail
-
index
protected final int index
-
owner
protected final ConstantPool owner
-
-
Constructor Detail
-
Entry
Entry(ConstantPool owner)
-
-
Method Detail
-
getTag
public abstract ConstantPool.Tag getTag()
-
size
public int size()
The number of slots in the constant pool used by this entry. 2 for DoubleConstant and LongConstant; 1 for everything else.
-
byteLength
public abstract int byteLength()
-
accept
public abstract <R,D> R accept(ConstantPool.Visitor<R,D> visitor, D data)
-
-