Interface TypePool.Default.AnnotationRegistrant
- All Known Implementing Classes:
TypePool.Default.AnnotationRegistrant.AbstractBase, TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable, TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable.WithIndex, TypePool.Default.AnnotationRegistrant.AbstractBase.ForTypeVariable.WithIndex.DoubleIndexed, TypePool.Default.AnnotationRegistrant.ForByteCodeElement, TypePool.Default.AnnotationRegistrant.ForByteCodeElement.WithIndex, TypePool.Default.AnnotationRegistrant.ForTypeVariable, TypePool.Default.AnnotationRegistrant.ForTypeVariable.WithIndex, TypePool.Default.AnnotationRegistrant.ForTypeVariable.WithIndex.DoubleIndexed, TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup, TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup, TypePool.Default.TypeExtractor.MethodExtractor
- Enclosing class:
TypePool.Default
protected static interface TypePool.Default.AnnotationRegistrant
An annotation registrant implements a visitor pattern for reading an unknown amount of values of annotations.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of an annotation registrant.static classAn annotation collector for a byte code element.static classAn annotation collector for a type variable. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled once all annotation values are visited.voidregister(String name, AnnotationValue<?, ?> annotationValue) Registers an annotation value.
-
Method Details
-
register
Registers an annotation value.- Parameters:
name- The name of the annotation value.annotationValue- The value of the annotation.
-
onComplete
void onComplete()Called once all annotation values are visited.
-