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.ForMismatchedType<U,V>, AnnotationValue.ForMissingType<U,V>, AnnotationValue.ForMissingValue<U,V>, AnnotationValue.ForTypeDescription<U extends java.lang.Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.State
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
typeName
The binary name of the enumeration type.private TypePool
typePool
The type pool to use for looking up types.private java.lang.String
value
The name of the enumeration.-
Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ForEnumerationValue(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.-
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
-
doResolve
@Enhance("resolved") protected AnnotationValue<EnumerationDescription,java.lang.Enum<?>> doResolve()
Description copied from class:TypePool.Default.LazyTypeDescription.LazyAnnotationValue
Resolves the actual annotation value.- Specified by:
doResolve
in classTypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,java.lang.Enum<?>>
- Returns:
- The actual annotation value.
-
-