protected class TypePool.AbstractBase.RawEnumerationValue.LazyEnumerationDescription extends EnumerationDescription.AbstractBase
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent
NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
EMPTY_NAME, NO_NAME
Modifier | Constructor and Description |
---|---|
protected |
LazyEnumerationDescription() |
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
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.