Interface PoolEntry

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the constant pool this entry is from.
    int
    Returns the index within the constant pool corresponding to this entry.
    byte
    tag()
    Returns the constant pool tag that describes the type of this entry.
    int
    Returns the number of constant pool slots this entry consumes.

    Methods declared in interface java.lang.classfile.WritableElementPREVIEW

    writeTo
  • Method Details

    • constantPool

      ConstantPoolPREVIEW constantPool()
      Returns the constant pool this entry is from.
      Returns:
      the constant pool this entry is from
    • tag

      byte tag()
      Returns the constant pool tag that describes the type of this entry.
      Returns:
      the constant pool tag that describes the type of this entry
    • index

      int index()
      Returns the index within the constant pool corresponding to this entry.
      Returns:
      the index within the constant pool corresponding to this entry
    • width

      int width()
      Returns the number of constant pool slots this entry consumes.
      Returns:
      the number of constant pool slots this entry consumes