@Internal public class LoadedVisitor extends Object
TypeElementVisitor and
optionally invoke the visit methods on the visitor if it matches the
element being visited by the annotation processor.| Constructor and Description |
|---|
LoadedVisitor(TypeElementVisitor visitor,
JavaVisitorContext visitorContext,
GenericUtils genericUtils,
ProcessingEnvironment processingEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
TypeElementVisitor |
getVisitor() |
boolean |
matches(AnnotationMetadata annotationMetadata) |
boolean |
matches(TypeElement typeElement) |
String |
toString() |
void |
visit(Element element,
AnnotationMetadata annotationMetadata)
Invoke the underlying visitor for the given element.
|
public LoadedVisitor(TypeElementVisitor visitor, JavaVisitorContext visitorContext, GenericUtils genericUtils, ProcessingEnvironment processingEnvironment)
visitor - The TypeElementVisitorvisitorContext - The visitor contextgenericUtils - The generic utilsprocessingEnvironment - The ProcessEnvironmentpublic TypeElementVisitor getVisitor()
public boolean matches(TypeElement typeElement)
typeElement - The class elementpublic boolean matches(AnnotationMetadata annotationMetadata)
annotationMetadata - The annotation datapublic void visit(Element element, AnnotationMetadata annotationMetadata)
element - The element to visitannotationMetadata - The annotation data for the node