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 Object
  • Field Details

    • index

      protected final int index
    • owner

      protected final ConstantPool owner
  • Constructor Details

  • Method Details

    • 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)