java.lang.Object
org.glavo.classfile.impl.AbstractPoolEntry
org.glavo.classfile.impl.AbstractPoolEntry.Utf8EntryImpl
- All Implemented Interfaces:
CharSequence,ClassfileElement,AnnotationConstantValueEntry,PoolEntry,Utf8Entry,WritableElement<PoolEntry>
- Enclosing class:
AbstractPoolEntry
public static final class AbstractPoolEntry.Utf8EntryImpl
extends AbstractPoolEntry
implements Utf8Entry
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glavo.classfile.impl.AbstractPoolEntry
AbstractPoolEntry.AbstractDynamicConstantPoolEntry, AbstractPoolEntry.AbstractMemberRefEntry, AbstractPoolEntry.ClassEntryImpl, AbstractPoolEntry.ConstantDynamicEntryImpl, AbstractPoolEntry.DoubleEntryImpl, AbstractPoolEntry.FieldRefEntryImpl, AbstractPoolEntry.FloatEntryImpl, AbstractPoolEntry.IntegerEntryImpl, AbstractPoolEntry.InterfaceMethodRefEntryImpl, AbstractPoolEntry.InvokeDynamicEntryImpl, AbstractPoolEntry.LongEntryImpl, AbstractPoolEntry.MethodHandleEntryImpl, AbstractPoolEntry.MethodRefEntryImpl, AbstractPoolEntry.MethodTypeEntryImpl, AbstractPoolEntry.ModuleEntryImpl, AbstractPoolEntry.NameAndTypeEntryImpl, AbstractPoolEntry.PackageEntryImpl, AbstractPoolEntry.StringEntryImpl, AbstractPoolEntry.Utf8EntryImpl -
Field Summary
Fields inherited from class org.glavo.classfile.impl.AbstractPoolEntry
tag -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) Returns the constant value.booleanbooleanReturns whether this entry describes the same string as the provided string.booleaninthashCode()intlength()Returns the string value for this entry.subSequence(int start, int end) toString()voidWrites the element to the specified writerMethods inherited from class org.glavo.classfile.impl.AbstractPoolEntry
constantPool, hash1, hash2, hashString, index, maybeClone, phiMix, rawUtf8EntryFromStandardAttributeName, tag, widthMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmptyMethods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, width
-
Method Details
-
clone
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractPoolEntry
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
stringValue
Description copied from interface:Utf8EntryReturns the string value for this entry.- Specified by:
stringValuein interfaceUtf8Entry- Returns:
- the string value for this entry
-
constantValue
Description copied from interface:AnnotationConstantValueEntry- Specified by:
constantValuein interfaceAnnotationConstantValueEntry- Returns:
- the constant value
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
equals
-
equalsUtf8
-
equalsString
Description copied from interface:Utf8EntryReturns whether this entry describes the same string as the provided string.- Specified by:
equalsStringin interfaceUtf8Entry- Parameters:
s- the string to compare to- Returns:
- whether this entry describes the same string as the provided string
-
writeTo
Description copied from interface:WritableElementWrites the element to the specified writer- Specified by:
writeToin interfaceWritableElement<PoolEntry>- Parameters:
pool- the writer
-