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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R,D> R accept(ConstantPool.Visitor<R, D> visitor, D data) abstract intabstract ConstantPool.TaggetTag()intsize()The number of slots in the constant pool used by this entry.
-
Field Details
-
index
protected final int index -
owner
-
-
Constructor Details
-
Entry
Entry(ConstantPool owner)
-
-
Method Details
-
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
-