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 java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
componentType
The resolved component type's binary name.
-
Constructor Summary
Constructors Constructor Description ForArrayType(java.lang.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(java.lang.String name)
Binds this component type to a given property name of an annotation.java.lang.String
lookup()
Lazily returns the binary name of the array component type of an annotation value.
-
-
-
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:
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 java.lang.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.
-
-