public static class EnumerationDescription.Latent extends EnumerationDescription.AbstractBase
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Modifier and Type | Field and Description |
---|---|
private TypeDescription |
enumerationType
The type of the enumeration.
|
private java.lang.String |
value
The value of the enumeration.
|
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
Latent(TypeDescription enumerationType,
java.lang.String value)
Creates a latent description of an enumeration value.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
getEnumerationType()
Returns the type of this enumeration.
|
java.lang.String |
getValue()
Returns the name of this instance's enumeration value.
|
<T extends java.lang.Enum<T>> |
load(java.lang.Class<T> type)
Prepares this enumeration value to be loaded.
|
equals, getActualName, hashCode, toString
private final TypeDescription enumerationType
private final java.lang.String value
public Latent(TypeDescription enumerationType, java.lang.String value)
enumerationType
- The enumeration type.value
- The value of the enumeration.public java.lang.String getValue()
public TypeDescription getEnumerationType()
public <T extends java.lang.Enum<T>> T load(java.lang.Class<T> type)
T
- The enumeration type.type
- A type constant representing the enumeration value.