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 classA base implementation for a collector for a type variable.Nested classes/interfaces inherited from interface TypePool.Default.AnnotationRegistrant
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe annotation descriptor.private final Map<String, AnnotationValue<?, ?>> The values that were collected so far. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBase(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.voidCalled once all annotation values are visited.voidregister(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:
registerin 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:
onCompletein interfaceTypePool.Default.AnnotationRegistrant
-
getTokens
Returns the token list for this collector.- Returns:
- The token list for this collector.
-