U - The type of the enumeration.public static class AnnotationDescription.AnnotationValue.ForEnumeration<U extends Enum<U>> extends Object implements AnnotationDescription.AnnotationValue<EnumerationDescription,U>
Enum as a value of an annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationDescription.AnnotationValue.ForEnumeration.IncompatibleRuntimeType
Represents an annotation's enumeration value for a runtime type that is not an enumeration type.
|
static class |
AnnotationDescription.AnnotationValue.ForEnumeration.Loaded<V extends Enum<V>>
A loaded representation of an enumeration value.
|
static class |
AnnotationDescription.AnnotationValue.ForEnumeration.UnknownRuntimeEnumeration
Represents an annotation's enumeration value for a constant that does not exist for the runtime
enumeration type.
|
AnnotationDescription.AnnotationValue.ForAnnotation<U extends Annotation>, AnnotationDescription.AnnotationValue.ForComplexArray<U,V>, AnnotationDescription.AnnotationValue.ForEnumeration<U extends Enum<U>>, AnnotationDescription.AnnotationValue.ForType<U extends Class<U>>, AnnotationDescription.AnnotationValue.Trivial<U>| Constructor and Description |
|---|
ForEnumeration(EnumerationDescription enumerationDescription)
Creates a new description of an annotation value for a given enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
AnnotationDescription.AnnotationValue.Loaded<U> |
load(ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static <V extends Enum<V>> |
of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
EnumerationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
String |
toString() |
public ForEnumeration(EnumerationDescription enumerationDescription)
enumerationDescription - The enumeration that is to be represented.public static <V extends Enum<V>> AnnotationDescription.AnnotationValue<EnumerationDescription,V> of(EnumerationDescription value)
V - The type of the represented enumeration.value - The value to represent.public EnumerationDescription resolve()
AnnotationDescription.AnnotationValueresolve in interface AnnotationDescription.AnnotationValue<EnumerationDescription,U extends Enum<U>>public AnnotationDescription.AnnotationValue.Loaded<U> load(ClassLoader classLoader) throws ClassNotFoundException
AnnotationDescription.AnnotationValueload in interface AnnotationDescription.AnnotationValue<EnumerationDescription,U extends Enum<U>>classLoader - The class loader for loading this value.ClassNotFoundException - If a type that represents a loaded value cannot be found.Copyright © 2014–2015. All rights reserved.