Interface MethodTypeEntry

All Superinterfaces:
ClassFileElement, LoadableConstantEntry, PoolEntry, WritableElement<PoolEntry>
All Known Implementing Classes:
AbstractPoolEntry.MethodTypeEntryImpl

public sealed interface MethodTypeEntry extends LoadableConstantEntry permits AbstractPoolEntry.MethodTypeEntryImpl
Models a CONSTANT_MethodType_info constant in the constant pool of a classfile.
Since:
22
Jvms:
4.4.9 The CONSTANT_MethodType_info Structure
  • Method Details

    • constantValue

      default ConstantDesc constantValue()
      Description copied from interface: LoadableConstantEntry
      Returns the constant described by this entry.
      Specified by:
      constantValue in interface LoadableConstantEntry
      Returns:
      the constant described by this entry
    • descriptor

      Utf8Entry descriptor()
      Returns the constant pool entry describing the method type.
      Returns:
      the constant pool entry describing the method type
    • asSymbol

      MethodTypeDesc asSymbol()
      Returns a symbolic descriptor for the method type.
      Returns:
      a symbolic descriptor for the method type