static final class AnnotationValue.CharacterValue 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 char |
value |
EMPTY_VALUE_ARRAY
Constructor and Description |
---|
CharacterValue(java.lang.String name,
char value) |
Modifier and Type | Method and Description |
---|---|
char |
asChar()
Returns the underlying character value as Java primitive char.
|
boolean |
equals(java.lang.Object o)
Compares this annotation value to another annotation value, and returns true if equal.
|
int |
hashCode()
Computes a hash code for this annotation value.
|
AnnotationValue.Kind |
kind()
Returns the kind of this value.
|
java.lang.Character |
value()
Returns a detyped value that represents the underlying annotation value.
|
asArray, asBoolean, asBooleanArray, asByte, asByteArray, 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, name, toString
public java.lang.Character value()
AnnotationValue
value
in class AnnotationValue
public 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 AnnotationValue
public char asChar()
AnnotationValue
asChar
in class AnnotationValue
public boolean equals(java.lang.Object o)
AnnotationValue
equals
in class AnnotationValue
o
- the annotation value to compare to.Object.equals(Object)
public int hashCode()
AnnotationValue
hashCode
in class AnnotationValue
Object.hashCode()