Package net.bytebuddy.pool
Class TypePool.Default.AnnotationRegistrant.AbstractBase
java.lang.Object
net.bytebuddy.pool.TypePool.Default.AnnotationRegistrant.AbstractBase
- All Implemented Interfaces:
TypePool.Default.AnnotationRegistrant
- Direct Known Subclasses:
TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable
,TypePool.Default.AnnotationRegistrant.ForByteCodeElement
,TypePool.Default.AnnotationRegistrant.ForByteCodeElement.WithIndex
- Enclosing interface:
TypePool.Default.AnnotationRegistrant
public abstract static class TypePool.Default.AnnotationRegistrant.AbstractBase
extends Object
implements TypePool.Default.AnnotationRegistrant
An abstract base implementation of an annotation registrant.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A base implementation for a collector for a type variable.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 String
The annotation descriptor.private final Map
<String, AnnotationValue<?, ?>> The values that were collected so far. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBase
(String descriptor) Creates a new annotation registrant. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List
<TypePool.Default.LazyTypeDescription.AnnotationToken> Returns the token list for this collector.void
Called once all annotation values are visited.void
register
(String name, AnnotationValue<?, ?> annotationValue) Registers an annotation value.
-
Field Details
-
descriptor
The annotation descriptor. -
values
The values that were collected so far.
-
-
Constructor Details
-
AbstractBase
Creates a new annotation registrant.- Parameters:
descriptor
- The annotation descriptor.
-
-
Method Details
-
register
Registers an annotation value.- Specified by:
register
in interfaceTypePool.Default.AnnotationRegistrant
- Parameters:
name
- The name of the annotation value.annotationValue
- The value of the annotation.
-
onComplete
public void onComplete()Called once all annotation values are visited.- Specified by:
onComplete
in interfaceTypePool.Default.AnnotationRegistrant
-
getTokens
Returns the token list for this collector.- Returns:
- The token list for this collector.
-