protected class TypePool.Default.TypeExtractor.AnnotationExtractor extends AnnotationVisitor
Modifier and Type | Class and Description |
---|---|
protected class |
TypePool.Default.TypeExtractor.AnnotationExtractor.AnnotationLookup
An annotation registrant for registering the values on an array that is itself an annotation property.
|
protected class |
TypePool.Default.TypeExtractor.AnnotationExtractor.ArrayLookup
An annotation registrant for registering values of an array.
|
api, av
Modifier | Constructor and Description |
---|---|
protected |
AnnotationExtractor(String descriptor,
int index,
Map<Integer,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypePool.Default.ComponentTypeLocator componentTypeLocator)
Creates a new annotation extractor for a byte code element with an index.
|
protected |
AnnotationExtractor(String descriptor,
List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens,
TypePool.Default.ComponentTypeLocator componentTypeLocator)
Creates a new annotation extractor for a byte code element without an index.
|
protected |
AnnotationExtractor(TypePool.Default.AnnotationRegistrant annotationRegistrant,
TypePool.Default.ComponentTypeLocator componentTypeLocator)
Creates a new annotation extractor.
|
Modifier and Type | Method and Description |
---|---|
void |
visit(String name,
Object value) |
AnnotationVisitor |
visitAnnotation(String name,
String descriptor) |
AnnotationVisitor |
visitArray(String name) |
void |
visitEnd() |
void |
visitEnum(String name,
String descriptor,
String value) |
protected AnnotationExtractor(String descriptor, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, TypePool.Default.ComponentTypeLocator componentTypeLocator)
descriptor
- The annotation descriptor.annotationTokens
- The collection for storing any discovered annotation tokens.componentTypeLocator
- The component type locator to use.protected AnnotationExtractor(String descriptor, int index, Map<Integer,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens, TypePool.Default.ComponentTypeLocator componentTypeLocator)
descriptor
- The annotation descriptor.index
- The index of the element for which the annotations are collected.annotationTokens
- The collection for storing any discovered annotation tokens.componentTypeLocator
- The component type locator to use.protected AnnotationExtractor(TypePool.Default.AnnotationRegistrant annotationRegistrant, TypePool.Default.ComponentTypeLocator componentTypeLocator)
annotationRegistrant
- The annotation registrant to register found annotation values on.componentTypeLocator
- A locator for the component type of any found annotation value.public void visit(String name, Object value)
visit
in class AnnotationVisitor
public void visitEnum(String name, String descriptor, String value)
visitEnum
in class AnnotationVisitor
public AnnotationVisitor visitAnnotation(String name, String descriptor)
visitAnnotation
in class AnnotationVisitor
public AnnotationVisitor visitArray(String name)
visitArray
in class AnnotationVisitor
public void visitEnd()
visitEnd
in class AnnotationVisitor
Copyright © 2014–2020. All rights reserved.