Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue
- java.lang.Object
-
- net.bytebuddy.description.annotation.AnnotationValue.AbstractBase<U,V>
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,java.lang.Enum<?>>
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue
-
- All Implemented Interfaces:
AnnotationValue<EnumerationDescription,java.lang.Enum<?>>
- Enclosing class:
- TypePool.Default.LazyTypeDescription.LazyAnnotationValue<U,V>
private static class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue extends TypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,java.lang.Enum<?>>
A lazy annotation value description for an enumeration value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue
AnnotationValue.AbstractBase<U,V>, AnnotationValue.ForAnnotationDescription<U extends java.lang.annotation.Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U,V>, AnnotationValue.ForEnumerationDescription<U extends java.lang.Enum<U>>, AnnotationValue.ForIncompatibleType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.Sort, AnnotationValue.State
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringtypeNameThe binary name of the enumeration type.private TypePooltypePoolThe type pool to use for looking up types.private java.lang.StringvalueThe name of the enumeration.-
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED
-
-
Constructor Summary
Constructors Modifier Constructor Description privateForEnumerationValue(TypePool typePool, java.lang.String typeName, java.lang.String value)Creates a lazy annotation value description for an enumeration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnnotationValue<EnumerationDescription,java.lang.Enum<?>>doResolve()Resolves the actual annotation value.AnnotationValue.SortgetSort()Returns the property type of the annotation value.-
Methods inherited from class net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue
equals, filter, getState, hashCode, load, resolve, toString
-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationValue.AbstractBase
filter, resolve
-
-
-
-
Field Detail
-
typePool
private final TypePool typePool
The type pool to use for looking up types.
-
typeName
private final java.lang.String typeName
The binary name of the enumeration type.
-
value
private final java.lang.String value
The name of the enumeration.
-
-
Constructor Detail
-
ForEnumerationValue
private ForEnumerationValue(TypePool typePool, java.lang.String typeName, java.lang.String value)
Creates a lazy annotation value description for an enumeration.- Parameters:
typePool- The type pool to use for looking up types.typeName- The binary name of the enumeration type.value- The name of the enumeration.
-
-
Method Detail
-
getSort
public AnnotationValue.Sort getSort()
Returns the property type of the annotation value.- Returns:
- The property type of the annotation value.
-
doResolve
@Enhance("resolved") protected AnnotationValue<EnumerationDescription,java.lang.Enum<?>> doResolve()
Description copied from class:TypePool.Default.LazyTypeDescription.LazyAnnotationValueResolves the actual annotation value.- Specified by:
doResolvein classTypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,java.lang.Enum<?>>- Returns:
- The actual annotation value.
-
-