Interface Utf8Entry

All Superinterfaces:
AnnotationConstantValueEntry, CharSequence, PoolEntry

public sealed interface Utf8Entry extends CharSequence, AnnotationConstantValueEntry
Models a CONSTANT_UTF8_info constant in the constant pool of a classfile.
See Java Virtual Machine Specification:
4.4.7 The CONSTANT_Utf8_info Structure
Since:
24
  • Method Details

    • stringValue

      String stringValue()
      Returns the string value for this entry.
      Returns:
      the string value for this entry
    • equalsString

      boolean equalsString(String s)
      Returns whether this entry describes the same string as the provided string.
      Parameters:
      s - the string to compare to
      Returns:
      whether this entry describes the same string as the provided string