Class EnumerationDescription.Latent
- java.lang.Object
-
- net.bytebuddy.description.enumeration.EnumerationDescription.AbstractBase
-
- net.bytebuddy.description.enumeration.EnumerationDescription.Latent
-
- All Implemented Interfaces:
EnumerationDescription,NamedElement
- Enclosing interface:
- EnumerationDescription
public static class EnumerationDescription.Latent extends EnumerationDescription.AbstractBase
A latent description of an enumeration value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.enumeration.EnumerationDescription
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
-
Constructor Summary
Constructors Constructor Description Latent(TypeDescription enumerationType, String value)Creates a latent description of an enumeration value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescriptiongetEnumerationType()Returns the type of this enumeration.StringgetValue()Returns the name of this instance's enumeration value.<T extends Enum<T>>
Tload(Class<T> type)Prepares this enumeration value to be loaded.-
Methods inherited from class net.bytebuddy.description.enumeration.EnumerationDescription.AbstractBase
equals, getActualName, hashCode, toString
-
-
-
-
Constructor Detail
-
Latent
public Latent(TypeDescription enumerationType, String value)
Creates a latent description of an enumeration value.- Parameters:
enumerationType- The enumeration type.value- The value of the enumeration.
-
-
Method Detail
-
getValue
public String getValue()
Returns the name of this instance's enumeration value.- Returns:
- The name of this enumeration constant.
-
getEnumerationType
public TypeDescription getEnumerationType()
Returns the type of this enumeration.- Returns:
- The type of this enumeration.
-
-