static final class AnnotationValue.BooleanValue extends AnnotationValue
AnnotationValue.ArrayValue, AnnotationValue.BooleanValue, AnnotationValue.ByteValue, AnnotationValue.CharacterValue, AnnotationValue.ClassValue, AnnotationValue.DoubleValue, AnnotationValue.EnumValue, AnnotationValue.FloatValue, AnnotationValue.IntegerValue, AnnotationValue.Kind, AnnotationValue.LongValue, AnnotationValue.NestedAnnotation, AnnotationValue.ShortValue, AnnotationValue.StringValue| Modifier and Type | Field and Description |
|---|---|
private boolean |
value |
EMPTY_VALUE_ARRAY| Constructor and Description |
|---|
BooleanValue(java.lang.String name,
boolean value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Returns the underlying boolean value as Java primitive boolean.
|
AnnotationValue.Kind |
kind()
Returns the kind of this value.
|
java.lang.Boolean |
value()
Returns a detyped value that represents the underlying annotation value.
|
asArray, asBooleanArray, asByte, asByteArray, asChar, asCharArray, asClass, asClassArray, asDouble, asDoubleArray, asEnum, asEnumArray, asEnumType, asEnumTypeArray, asFloat, asFloatArray, asInt, asIntArray, asLong, asLongArray, asNested, asNestedArray, asShort, asShortArray, asString, asStringArray, componentKind, createArrayValue, createBooleanValue, createByteValue, createCharacterValue, createClassValue, createDouleValue, createEnumValue, createFloatValue, createIntegerValue, createLongalue, createNestedAnnotationValue, createShortValue, createStringValue, equals, hashCode, name, toStringpublic java.lang.Boolean value()
AnnotationValuevalue in class AnnotationValuepublic AnnotationValue.Kind kind()
AnnotationValue
A special AnnotationValue.Kind.UNKNOWN kind is used to refer to components
of zero-length arrays, as the underlying type is not known.
kind in class AnnotationValuepublic boolean asBoolean()
AnnotationValueasBoolean in class AnnotationValue