@HashCodeAndEqualsPlugin.Enhance public static class TypePool.Default.ComponentTypeLocator.ForAnnotationProperty extends java.lang.Object implements TypePool.Default.ComponentTypeLocator
Modifier and Type | Class and Description |
---|---|
protected class |
TypePool.Default.ComponentTypeLocator.ForAnnotationProperty.Bound
A bound representation of a
TypePool.Default.ComponentTypeLocator.ForAnnotationProperty . |
TypePool.Default.ComponentTypeLocator.ForAnnotationProperty, TypePool.Default.ComponentTypeLocator.ForArrayType, TypePool.Default.ComponentTypeLocator.Illegal
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
annotationName
The name of the annotation to analyze.
|
private TypePool |
typePool
The type pool to query for type descriptions.
|
Constructor and Description |
---|
ForAnnotationProperty(TypePool typePool,
java.lang.String annotationDescriptor)
Creates a new component type locator for an array value.
|
Modifier and Type | Method and Description |
---|---|
TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference |
bind(java.lang.String name)
Binds this component type to a given property name of an annotation.
|
private final TypePool typePool
private final java.lang.String annotationName
public ForAnnotationProperty(TypePool typePool, java.lang.String annotationDescriptor)
typePool
- The type pool to be used for looking up linked types.annotationDescriptor
- A descriptor of the annotation to analyze.public TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference bind(java.lang.String name)
bind
in interface TypePool.Default.ComponentTypeLocator
name
- The name of an annotation property which the returned component type reference should
query for resolving an array's component type.