- All Superinterfaces:
AnnotationConstantValueEntry,CharSequence,ClassFileElement,PoolEntry,WritableElement<PoolEntry>
- All Known Implementing Classes:
AbstractPoolEntry.Utf8EntryImpl
public sealed interface Utf8Entry
extends CharSequence, AnnotationConstantValueEntry
permits AbstractPoolEntry.Utf8EntryImpl
Models a
CONSTANT_UTF8_info constant in the constant pool of a
classfile.- Since:
- 22
- Jvms:
- 4.4.7 The CONSTANT_Utf8_info Structure
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this entry describes the same string as the provided string.Returns the string value for this entry.Methods inherited from interface org.glavo.classfile.constantpool.AnnotationConstantValueEntry
constantValueMethods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, isEmpty, length, subSequence, toStringMethods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
stringValue
String stringValue()Returns the string value for this entry.- Returns:
- the string value for this entry
-
equalsString
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
-