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
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>annotationTokensThe target collection.private intindexThe byte code element's index.
-
Constructor Summary
Constructors Modifier Constructor Description protectedWithIndex(java.lang.String descriptor, int index, java.util.Map<java.lang.Integer,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)Creates a new annotation collector for a byte code element with an index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>getTokens()Returns the token list for this collector.-
Methods inherited from class net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.AbstractBase
onComplete, register
-
-
-
-
Field Detail
-
index
private final int index
The byte code element's index.
-
annotationTokens
private final java.util.Map<java.lang.Integer,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens
The target collection.
-
-
Constructor Detail
-
WithIndex
protected WithIndex(java.lang.String descriptor, int index, java.util.Map<java.lang.Integer,java.util.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 Detail
-
getTokens
protected java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> getTokens()
Description copied from class:TypePool.Default.AnnotationRegistrant.AbstractBaseReturns the token list for this collector.- Specified by:
getTokensin classTypePool.Default.AnnotationRegistrant.AbstractBase- Returns:
- The token list for this collector.
-
-