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 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 ForLoadedEnumeration(Enum<?> value)
Creates a new enumeration value representation for a loaded enumeration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<EnumerationDescription>
asList(Enum<?>[] enumerations)
Enlists a given array of loaded enumerations as enumeration values.TypeDescription
getEnumerationType()
Returns the type of this enumeration.String
getValue()
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
-
ForLoadedEnumeration
public ForLoadedEnumeration(Enum<?> value)
Creates a new enumeration value representation for a loaded enumeration.- Parameters:
value
- The value to represent.
-
-
Method Detail
-
asList
public static List<EnumerationDescription> asList(Enum<?>[] enumerations)
Enlists a given array of loaded enumerations as enumeration values.- Parameters:
enumerations
- The enumerations to represent.- Returns:
- A list of the given enumerations.
-
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.
-
-