Package net.bytebuddy.pool
Class TypePool.Default.AnnotationRegistrant.ForByteCodeElement
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.AbstractBase
-
- net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.ForByteCodeElement
-
- All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
- Enclosing interface:
- TypePool.Default.AnnotationRegistrant
public static class TypePool.Default.AnnotationRegistrant.ForByteCodeElement extends TypePool.Default.AnnotationRegistrant.AbstractBase
An annotation collector for a byte code element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypePool.Default.AnnotationRegistrant.ForByteCodeElement.WithIndexAn annotation collector for a byte code element with an index.-
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.List<TypePool.Default.LazyTypeDescription.AnnotationToken>annotationTokensThe target collection.
-
Constructor Summary
Constructors Modifier Constructor Description protectedForByteCodeElement(java.lang.String descriptor, java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens)Creates a new annotation collector for a byte code element.
-
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
-
annotationTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens
The target collection.
-
-
Constructor Detail
-
ForByteCodeElement
protected ForByteCodeElement(java.lang.String descriptor, java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens)Creates a new annotation collector for a byte code element.- Parameters:
descriptor- The annotation descriptor.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.
-
-