U
- The type of the enumeration.public static class AnnotationValue.ForEnumerationDescription<U extends 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 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 Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.RenderingDispatcher
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(Object other) |
int |
hashCode() |
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() |
loadSilent, resolve
protected ForEnumerationDescription(EnumerationDescription enumerationDescription)
enumerationDescription
- The enumeration that is to be represented.public static <V extends 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(ClassLoader classLoader) throws ClassNotFoundException
classLoader
- The class loader for loading this value.ClassNotFoundException
- If a type that represents a loaded value cannot be found.Copyright © 2014–2018. All rights reserved.