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 ClassesModifier and TypeClassDescriptionstatic class
An 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
FieldsModifier and TypeFieldDescriptionprivate final List<TypePool.Default.LazyTypeDescription.AnnotationToken>
The target collection. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForByteCodeElement
(String descriptor, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new annotation collector for a byte code element. -
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
-
annotationTokens
The target collection.
-
-
Constructor Details
-
ForByteCodeElement
protected ForByteCodeElement(String descriptor, 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 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.
-