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 java.lang.Object implements TypePool.Default.AnnotationRegistrant
An abstract base implementation of an annotation registrant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable
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
Fields Modifier and Type Field Description private java.lang.String
descriptor
The annotation descriptor.private java.util.Map<java.lang.String,AnnotationValue<?,?>>
values
The values that were collected so far.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBase(java.lang.String descriptor)
Creates a new annotation registrant.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>
getTokens()
Returns the token list for this collector.void
onComplete()
Called once all annotation values are visited.void
register(java.lang.String name, AnnotationValue<?,?> annotationValue)
Registers an annotation value.
-
-
-
Field Detail
-
descriptor
private final java.lang.String descriptor
The annotation descriptor.
-
values
private final java.util.Map<java.lang.String,AnnotationValue<?,?>> values
The values that were collected so far.
-
-
Method Detail
-
register
public void register(java.lang.String name, AnnotationValue<?,?> annotationValue)
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
protected abstract java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> getTokens()
Returns the token list for this collector.- Returns:
- The token list for this collector.
-
-