U - The type of the enumeration.public static class AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>> extends AnnotationValue.AbstractBase<EnumerationDescription,U>
Enum as a value of an annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationValue.ForEnumerationDescription.IncompatibleRuntimeType
Represents an annotation's enumeration value for a runtime type that is not an enumeration type.
|
static class |
AnnotationValue.ForEnumerationDescription.Loaded<V extends java.lang.Enum<V>>
A loaded representation of an enumeration value.
|
static class |
AnnotationValue.ForEnumerationDescription.UnknownRuntimeEnumeration
Represents an annotation's enumeration value for a constant that does not exist for the runtime
enumeration type.
|
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.RenderingDispatcher| Modifier and Type | Field and Description |
|---|---|
private EnumerationDescription |
enumerationDescription
The enumeration that is represented.
|
UNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
ForEnumerationDescription(EnumerationDescription enumerationDescription)
Creates a new description of an annotation value for a given enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
AnnotationValue.Loaded<U> |
load(java.lang.ClassLoader classLoader)
Returns the loaded value of this annotation.
|
static <V extends java.lang.Enum<V>> |
of(EnumerationDescription value)
Creates a new annotation value for the given enumeration description.
|
EnumerationDescription |
resolve()
Resolves the unloaded value of this annotation.
|
java.lang.String |
toString() |
loadSilent, resolveprivate final EnumerationDescription enumerationDescription
protected ForEnumerationDescription(EnumerationDescription enumerationDescription)
enumerationDescription - The enumeration that is to be represented.public static <V extends java.lang.Enum<V>> AnnotationValue<EnumerationDescription,V> of(EnumerationDescription value)
V - The type of the represented enumeration.value - The value to represent.public EnumerationDescription resolve()
public AnnotationValue.Loaded<U> load(java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
classLoader - The class loader for loading this value.java.lang.ClassNotFoundException - If a type that represents a loaded value cannot be found.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object