public abstract static class TypePool.Default.AnnotationRegistrant.AbstractBase extends 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 | Constructor and Description |
---|---|
protected |
AbstractBase(String descriptor)
Creates a new annotation registrant.
|
Modifier and Type | Method and Description |
---|---|
protected abstract List<TypePool.Default.LazyTypeDescription.AnnotationToken> |
getTokens()
Returns the token list for this collector.
|
void |
onComplete()
Called once all annotation values are visited.
|
void |
register(String name,
AnnotationDescription.AnnotationValue<?,?> annotationValue)
Registers an annotation value.
|
protected AbstractBase(String descriptor)
descriptor
- The annotation descriptor.public void register(String name, AnnotationDescription.AnnotationValue<?,?> annotationValue)
TypePool.Default.AnnotationRegistrant
register
in interface TypePool.Default.AnnotationRegistrant
name
- The name of the annotation value.annotationValue
- The value of the annotation.public void onComplete()
TypePool.Default.AnnotationRegistrant
onComplete
in interface TypePool.Default.AnnotationRegistrant
protected abstract List<TypePool.Default.LazyTypeDescription.AnnotationToken> getTokens()
Copyright © 2014–2016. All rights reserved.