Package net.bytebuddy.pool
Class TypePool.Default.ComponentTypeLocator.ForArrayType
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.ComponentTypeLocator.ForArrayType
-
- All Implemented Interfaces:
TypePool.AbstractBase.ComponentTypeReference
,TypePool.Default.ComponentTypeLocator
- Enclosing interface:
- TypePool.Default.ComponentTypeLocator
@Enhance public static class TypePool.Default.ComponentTypeLocator.ForArrayType extends Object implements TypePool.Default.ComponentTypeLocator, TypePool.AbstractBase.ComponentTypeReference
A component type locator that locates an array type by a method's return value from its method descriptor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.ComponentTypeLocator
TypePool.Default.ComponentTypeLocator.ForAnnotationProperty, TypePool.Default.ComponentTypeLocator.ForArrayType, TypePool.Default.ComponentTypeLocator.Illegal
-
-
Constructor Summary
Constructors Constructor Description ForArrayType(String methodDescriptor)
Creates a new component type locator for an array type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypePool.AbstractBase.ComponentTypeReference
bind(String name)
Binds this component type to a given property name of an annotation.String
lookup()
Lazily returns the binary name of the array component type of an annotation value.
-
-
-
Constructor Detail
-
ForArrayType
public ForArrayType(String methodDescriptor)
Creates a new component type locator for an array type.- Parameters:
methodDescriptor
- The method descriptor to resolve.
-
-
Method Detail
-
bind
public TypePool.AbstractBase.ComponentTypeReference bind(String name)
Binds this component type to a given property name of an annotation.- Specified by:
bind
in 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.
-
lookup
public String lookup()
Lazily returns the binary name of the array component type of an annotation value.- Specified by:
lookup
in interfaceTypePool.AbstractBase.ComponentTypeReference
- Returns:
- The binary name of the component type.
-
-