public abstract static class TypePool.Default.AnnotationRegistrant.AbstractBase extends java.lang.Object implements TypePool.Default.AnnotationRegistrant
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable
A base implementation for a collector for a type variable.
|
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.ForByteCodeElement| Modifier and Type | Field and 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.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBase(java.lang.String descriptor)
Creates a new annotation registrant.
|
| Modifier and Type | Method and 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.
|
private final java.lang.String descriptor
private final java.util.Map<java.lang.String,AnnotationValue<?,?>> values
protected AbstractBase(java.lang.String descriptor)
descriptor - The annotation descriptor.public void register(java.lang.String name,
AnnotationValue<?,?> annotationValue)
register in interface TypePool.Default.AnnotationRegistrantname - The name of the annotation value.annotationValue - The value of the annotation.public void onComplete()
onComplete in interface TypePool.Default.AnnotationRegistrantprotected abstract java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> getTokens()