Class EnumerationDescription.ForLoadedEnumeration
java.lang.Object
net.bytebuddy.description.enumeration.EnumerationDescription.AbstractBase
net.bytebuddy.description.enumeration.EnumerationDescription.ForLoadedEnumeration
- All Implemented Interfaces:
EnumerationDescription, NamedElement
- Enclosing interface:
EnumerationDescription
public static class EnumerationDescription.ForLoadedEnumeration
extends EnumerationDescription.AbstractBase
An enumeration description representing a loaded enumeration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface EnumerationDescription
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.LatentNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName -
Field Summary
FieldsFields inherited from interface NamedElement
EMPTY_NAME, NO_NAME -
Constructor Summary
ConstructorsConstructorDescriptionForLoadedEnumeration(Enum<?> value) Creates a new enumeration value representation for a loaded enumeration. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<EnumerationDescription> Enlists a given array of loaded enumerations as enumeration values.Returns the type of this enumeration.getValue()Returns the name of this instance's enumeration value.<T extends Enum<T>>
TPrepares this enumeration value to be loaded.Methods inherited from class EnumerationDescription.AbstractBase
equals, getActualName, hashCode, toString
-
Field Details
-
value
The loaded enumeration value.
-
-
Constructor Details
-
ForLoadedEnumeration
Creates a new enumeration value representation for a loaded enumeration.- Parameters:
value- The value to represent.
-
-
Method Details
-
asList
Enlists a given array of loaded enumerations as enumeration values.- Parameters:
enumerations- The enumerations to represent.- Returns:
- A list of the given enumerations.
-
getValue
Returns the name of this instance's enumeration value.- Returns:
- The name of this enumeration constant.
-
getEnumerationType
Returns the type of this enumeration.- Returns:
- The type of this enumeration.
-
load
-