Package org.jboss.jandex
Class AnnotationValue.NestedAnnotation
java.lang.Object
org.jboss.jandex.AnnotationValue
org.jboss.jandex.AnnotationValue.NestedAnnotation
- Enclosing class:
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
FieldsFields inherited from class org.jboss.jandex.AnnotationValue
EMPTY_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasNested()
Returns a nested annotation represented by this value.boolean
Compares this annotation value to another annotation value, and returns true if equal.int
hashCode()
Computes a hash code for this annotation value.kind()
Returns the kind of this value.value()
Returns a detyped value that represents the underlying annotation value.Methods inherited from class org.jboss.jandex.AnnotationValue
asArray, asArrayList, asBoolean, asBooleanArray, asByte, asByteArray, asChar, asCharArray, asClass, asClassArray, asDouble, asDoubleArray, asEnum, asEnumArray, asEnumType, asEnumTypeArray, asFloat, asFloatArray, asInt, asIntArray, asLong, asLongArray, 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
-
Field Details
-
value
-
-
Constructor Details
-
NestedAnnotation
NestedAnnotation(String name, AnnotationInstance value)
-
-
Method Details
-
value
Description copied from class:AnnotationValue
Returns a detyped value that represents the underlying annotation value. It is recommended that the type specific methods be used instead.- Specified by:
value
in classAnnotationValue
- Returns:
- the underlying value
-
kind
Description copied from class:AnnotationValue
Returns 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.UNKNOWN
kind is used to refer to components of zero-length arrays, as the underlying type is not known.- Specified by:
kind
in classAnnotationValue
- Returns:
- the kind of value
-
asNested
Description copied from class:AnnotationValue
Returns a nested annotation represented by this value. The nested annotation will have a null target, but may contain an arbitrary amount of nested values- Overrides:
asNested
in classAnnotationValue
- Returns:
- the underlying nested annotation instance
-
equals
Description copied from class:AnnotationValue
Compares this annotation value to another annotation value, and returns true if equal.- Overrides:
equals
in classAnnotationValue
- Parameters:
o
- the annotation value to compare to.- Returns:
- true if equal, false if not
- See Also:
-
hashCode
public int hashCode()Description copied from class:AnnotationValue
Computes a hash code for this annotation value.- Overrides:
hashCode
in classAnnotationValue
- Returns:
- the hash code for this annotation value
- See Also:
-