- All Superinterfaces:
AnnotationValue,ClassfileElement,WritableElement<AnnotationValue>
- All Known Subinterfaces:
AnnotationImpl.OfConstantImpl,AnnotationValue.OfBoolean,AnnotationValue.OfByte,AnnotationValue.OfCharacter,AnnotationValue.OfDouble,AnnotationValue.OfFloat,AnnotationValue.OfInteger,AnnotationValue.OfLong,AnnotationValue.OfShort,AnnotationValue.OfString
- All Known Implementing Classes:
AnnotationImpl.OfBooleanImpl,AnnotationImpl.OfByteImpl,AnnotationImpl.OfCharacterImpl,AnnotationImpl.OfDoubleImpl,AnnotationImpl.OfFloatImpl,AnnotationImpl.OfIntegerImpl,AnnotationImpl.OfLongImpl,AnnotationImpl.OfShortImpl,AnnotationImpl.OfStringImpl
- Enclosing interface:
AnnotationValue
public static sealed interface AnnotationValue.OfConstant
extends AnnotationValue
permits AnnotationValue.OfString, AnnotationValue.OfDouble, AnnotationValue.OfFloat, AnnotationValue.OfLong, AnnotationValue.OfInteger, AnnotationValue.OfShort, AnnotationValue.OfCharacter, AnnotationValue.OfByte, AnnotationValue.OfBoolean, AnnotationImpl.OfConstantImpl
Models a constant-valued element
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.AnnotationValue
AnnotationValue.OfAnnotation, AnnotationValue.OfArray, AnnotationValue.OfBoolean, AnnotationValue.OfByte, AnnotationValue.OfCharacter, AnnotationValue.OfClass, AnnotationValue.OfConstant, AnnotationValue.OfDouble, AnnotationValue.OfEnum, AnnotationValue.OfFloat, AnnotationValue.OfInteger, AnnotationValue.OfLong, AnnotationValue.OfShort, AnnotationValue.OfString -
Method Summary
Methods inherited from interface org.glavo.classfile.AnnotationValue
tagMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
constant
AnnotationConstantValueEntry constant()Returns the constant.- Returns:
- the constant
-
constantValue
ConstantDesc constantValue()Returns the constant.- Returns:
- the constant
-