Package net.bytebuddy.pool
Class TypePool.Default.AnnotationRegistrant.ForByteCodeElement.WithIndex
java.lang.Object
net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.AbstractBase
net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.ForByteCodeElement.WithIndex
- All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
- Enclosing class:
- TypePool.Default.AnnotationRegistrant.ForByteCodeElement
public static class TypePool.Default.AnnotationRegistrant.ForByteCodeElement.WithIndex
extends TypePool.Default.AnnotationRegistrant.AbstractBase
An annotation collector for a byte code element with an index.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.AbstractBase
TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Integer,
List<TypePool.Default.LazyTypeDescription.AnnotationToken>> The target collection.private final int
The byte code element's index. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the token list for this collector.Methods inherited from class net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.AbstractBase
onComplete, register
-
Field Details
-
index
private final int indexThe byte code element's index. -
annotationTokens
private final Map<Integer,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokensThe target collection.
-
-
Constructor Details
-
WithIndex
protected WithIndex(String descriptor, int index, Map<Integer, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) Creates a new annotation collector for a byte code element with an index.- Parameters:
descriptor
- The annotation descriptor.index
- The byte code element's index.annotationTokens
- The target collection.
-
-
Method Details
-
getTokens
Description copied from class:TypePool.Default.AnnotationRegistrant.AbstractBase
Returns the token list for this collector.- Specified by:
getTokens
in classTypePool.Default.AnnotationRegistrant.AbstractBase
- Returns:
- The token list for this collector.
-