Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue
java.lang.Object
net.bytebuddy.description.annotation.AnnotationValue.AbstractBase<EnumerationDescription,Enum<?>>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,Enum<?>>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue
- All Implemented Interfaces:
AnnotationValue<EnumerationDescription,Enum<?>>
- Enclosing class:
TypePool.Default.LazyTypeDescription.LazyAnnotationValue<U,V>
private static class TypePool.Default.LazyTypeDescription.LazyAnnotationValue.ForEnumerationValue
extends TypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,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 Annotation>, AnnotationValue.ForConstant<U>, AnnotationValue.ForDescriptionArray<U, V>, AnnotationValue.ForEnumerationDescription<U extends Enum<U>>, AnnotationValue.ForIncompatibleType<U, V>, AnnotationValue.ForMissingType<U, V>, AnnotationValue.ForMissingValue<U, V>, AnnotationValue.ForTypeDescription<U extends Class<U>>, AnnotationValue.Loaded<U>, AnnotationValue.RenderingDispatcher, AnnotationValue.Sort, AnnotationValue.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe binary name of the enumeration type.private final TypePoolThe type pool to use for looking up types.private final StringThe name of the enumeration.Fields inherited from interface net.bytebuddy.description.annotation.AnnotationValue
UNDEFINED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateForEnumerationValue(TypePool typePool, String typeName, String value) Creates a lazy annotation value description for an enumeration. -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotationValue<EnumerationDescription, Enum<?>> Resolves the actual annotation value.getSort()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, toStringMethods inherited from class net.bytebuddy.description.annotation.AnnotationValue.AbstractBase
filter, resolve
-
Field Details
-
typePool
The type pool to use for looking up types. -
typeName
The binary name of the enumeration type. -
value
The name of the enumeration.
-
-
Constructor Details
-
ForEnumerationValue
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 Details
-
getSort
Returns the property type of the annotation value.- Returns:
- The property type of the annotation value.
-
doResolve
Description copied from class:TypePool.Default.LazyTypeDescription.LazyAnnotationValueResolves the actual annotation value.- Specified by:
doResolvein classTypePool.Default.LazyTypeDescription.LazyAnnotationValue<EnumerationDescription,Enum<?>> - Returns:
- The actual annotation value.
-