static final class AnnotationValue.IntegerValue 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 int |
value |
EMPTY_VALUE_ARRAY| Constructor and Description |
|---|
IntegerValue(java.lang.String name,
int value) |
| Modifier and Type | Method and Description |
|---|---|
byte |
asByte()
Converts the underlying numerical type to a byte as if it was
casted in Java.
|
double |
asDouble()
Converts the underlying numerical type to a double as if it was
casted in Java.
|
float |
asFloat()
Converts the underlying numerical type to a float as if it was
casted in Java.
|
int |
asInt()
Converts the underlying numerical type to an integer as if it was
casted in Java.
|
long |
asLong()
Converts the underlying numerical type to an long as if it was
casted in Java.
|
short |
asShort()
Converts the underlying numerical type to a short as if it was
casted in Java.
|
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.Integer |
value()
Returns a detyped value that represents the underlying annotation value.
|
asArray, asBoolean, asBooleanArray, asByteArray, asChar, asCharArray, asClass, asClassArray, asDoubleArray, asEnum, asEnumArray, asEnumType, asEnumTypeArray, asFloatArray, asIntArray, asLongArray, asNested, asNestedArray, asShortArray, asString, asStringArray, componentKind, createArrayValue, createBooleanValue, createByteValue, createCharacterValue, createClassValue, createDouleValue, createEnumValue, createFloatValue, createIntegerValue, createLongalue, createNestedAnnotationValue, createShortValue, createStringValue, name, toStringpublic java.lang.Integer 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 int asInt()
AnnotationValueasInt in class AnnotationValuepublic long asLong()
AnnotationValueasLong in class AnnotationValuepublic short asShort()
AnnotationValueasShort in class AnnotationValuepublic byte asByte()
AnnotationValueasByte in class AnnotationValuepublic float asFloat()
AnnotationValueasFloat in class AnnotationValuepublic double asDouble()
AnnotationValueasDouble in class AnnotationValuepublic boolean equals(java.lang.Object o)
AnnotationValueequals in class AnnotationValueo - the annotation value to compare to.Object.equals(Object)public int hashCode()
AnnotationValuehashCode in class AnnotationValueObject.hashCode()