Package org.jboss.jandex
Class AnnotationValue.CharacterValue
- java.lang.Object
-
- org.jboss.jandex.AnnotationValue
-
- org.jboss.jandex.AnnotationValue.CharacterValue
-
- Enclosing class:
- AnnotationValue
static final class AnnotationValue.CharacterValue extends AnnotationValue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.jandex.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
-
-
Field Summary
Fields Modifier and Type Field Description private charvalue-
Fields inherited from class org.jboss.jandex.AnnotationValue
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description CharacterValue(java.lang.String name, char value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charasChar()Returns the underlying character value as Java primitive char.booleanequals(java.lang.Object o)Compares this annotation value to another annotation value, and returns true if equal.inthashCode()Computes a hash code for this annotation value.AnnotationValue.Kindkind()Returns the kind of this value.java.lang.Charactervalue()Returns a detyped value that represents the underlying annotation value.-
Methods inherited from class org.jboss.jandex.AnnotationValue
asArray, asArrayList, 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, createArrayValue, createBooleanValue, createByteValue, createCharacterValue, createClassValue, createDoubleValue, createDouleValue, createEnumValue, createFloatValue, createIntegerValue, createLongalue, createLongValue, createNestedAnnotationValue, createShortValue, createStringValue, name, toString, toString
-
-
-
-
Method Detail
-
value
public java.lang.Character value()
Description copied from class:AnnotationValueReturns a detyped value that represents the underlying annotation value. It is recommended that the type specific methods be used instead.- Specified by:
valuein classAnnotationValue- Returns:
- the underlying value
-
kind
public AnnotationValue.Kind kind()
Description copied from class:AnnotationValueReturns the kind of this value. The kind includes all Java primitives, String and Enum types, nested values, and finally arrays of the above. Since the return type is itself an enumeration, it can be used with Java switch statements.A special
AnnotationValue.Kind.UNKNOWNkind is used to refer to components of zero-length arrays, as the underlying type is not known.- Specified by:
kindin classAnnotationValue- Returns:
- the kind of value
-
asChar
public char asChar()
Description copied from class:AnnotationValueReturns the underlying character value as Java primitive char.- Overrides:
asCharin classAnnotationValue- Returns:
- a char representing the character parameter
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:AnnotationValueCompares this annotation value to another annotation value, and returns true if equal.- Overrides:
equalsin classAnnotationValue- Parameters:
o- the annotation value to compare to.- Returns:
- true if equal, false if not
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
Description copied from class:AnnotationValueComputes a hash code for this annotation value.- Overrides:
hashCodein classAnnotationValue- Returns:
- the hash code for this annotation value
- See Also:
Object.hashCode()
-
-