Package net.bytebuddy.pool
Class TypePool.AbstractBase.RawEnumerationValue.LazyEnumerationDescription
- java.lang.Object
-
- net.bytebuddy.description.enumeration.EnumerationDescription.AbstractBase
-
- net.bytebuddy.pool.TypePool.AbstractBase.RawEnumerationValue.LazyEnumerationDescription
-
- All Implemented Interfaces:
EnumerationDescription
,NamedElement
- Enclosing class:
- TypePool.AbstractBase.RawEnumerationValue
protected class TypePool.AbstractBase.RawEnumerationValue.LazyEnumerationDescription extends EnumerationDescription.AbstractBase
An enumeration description where any type references are only resolved on demand.
-
-
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.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LazyEnumerationDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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>>
Tload(java.lang.Class<T> type)
Prepares this enumeration value to be loaded.-
Methods inherited from class net.bytebuddy.description.enumeration.EnumerationDescription.AbstractBase
equals, getActualName, hashCode, toString
-
-
-
-
Method Detail
-
getValue
public java.lang.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.
-
load
public <T extends java.lang.Enum<T>> T load(java.lang.Class<T> type)
Prepares this enumeration value to be loaded.- Type Parameters:
T
- The enumeration type.- Parameters:
type
- A type constant representing the enumeration value.- Returns:
- The loaded enumeration constant corresponding to this value.
-
-