- All Superinterfaces:
ClassfileElement,LoadableConstantEntry,PoolEntry,WritableElement<PoolEntry>
- All Known Subinterfaces:
DoubleEntry,FloatEntry,IntegerEntry,LongEntry,StringEntry
- All Known Implementing Classes:
AbstractPoolEntry.DoubleEntryImpl,AbstractPoolEntry.FloatEntryImpl,AbstractPoolEntry.IntegerEntryImpl,AbstractPoolEntry.LongEntryImpl,AbstractPoolEntry.StringEntryImpl
public sealed interface ConstantValueEntry
extends LoadableConstantEntry
permits DoubleEntry, FloatEntry, IntegerEntry, LongEntry, StringEntry
Models a constant pool entry that can be used as the constant in a
ConstantValue attribute; this includes the four primitive constant
types and String constants.-
Method Summary
Methods inherited from interface org.glavo.classfile.constantpool.LoadableConstantEntry
typeKindMethods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
constantValue
ConstantDesc constantValue()- Specified by:
constantValuein interfaceLoadableConstantEntry- Returns:
- the constant value
-