Package net.bytebuddy.pool
Class TypePool.Default.ComponentTypeLocator.ForAnnotationProperty
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.ComponentTypeLocator.ForAnnotationProperty
-
- All Implemented Interfaces:
TypePool.Default.ComponentTypeLocator
- Enclosing interface:
- TypePool.Default.ComponentTypeLocator
@Enhance public static class TypePool.Default.ComponentTypeLocator.ForAnnotationProperty extends java.lang.Object implements TypePool.Default.ComponentTypeLocator
A component type locator that lazily analyses an annotation for resolving an annotation property's array value's component type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classTypePool.Default.ComponentTypeLocator.ForAnnotationProperty.BoundA bound representation of aTypePool.Default.ComponentTypeLocator.ForAnnotationProperty.-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.ComponentTypeLocator
TypePool.Default.ComponentTypeLocator.ForAnnotationProperty, TypePool.Default.ComponentTypeLocator.ForArrayType, TypePool.Default.ComponentTypeLocator.Illegal
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringannotationNameThe name of the annotation to analyze.private TypePooltypePoolThe type pool to query for type descriptions.
-
Constructor Summary
Constructors Constructor Description ForAnnotationProperty(TypePool typePool, java.lang.String annotationDescriptor)Creates a new component type locator for an array value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypePool.AbstractBase.ComponentTypeReferencebind(java.lang.String name)Binds this component type to a given property name of an annotation.
-
-
-
Field Detail
-
typePool
private final TypePool typePool
The type pool to query for type descriptions.
-
annotationName
private final java.lang.String annotationName
The name of the annotation to analyze.
-
-
Constructor Detail
-
ForAnnotationProperty
public ForAnnotationProperty(TypePool typePool, java.lang.String annotationDescriptor)
Creates a new component type locator for an array value.- Parameters:
typePool- The type pool to be used for looking up linked types.annotationDescriptor- A descriptor of the annotation to analyze.
-
-
Method Detail
-
bind
public TypePool.AbstractBase.ComponentTypeReference bind(java.lang.String name)
Binds this component type to a given property name of an annotation.- Specified by:
bindin interfaceTypePool.Default.ComponentTypeLocator- Parameters:
name- The name of an annotation property which the returned component type reference should query for resolving an array's component type.- Returns:
- A component type reference to an annotation value's component type.
-
-