@Internal public class LoadedVisitor extends java.lang.Object implements Ordered
TypeElementVisitor
and
optionally invoke the visit methods on the visitor if it matches the
element being visited by the annotation processor.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
LoadedVisitor(TypeElementVisitor visitor,
JavaVisitorContext visitorContext,
GenericUtils genericUtils,
javax.annotation.processing.ProcessingEnvironment processingEnvironment) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
TypeElementVisitor |
getVisitor() |
boolean |
matches(AnnotationMetadata annotationMetadata) |
boolean |
matches(javax.lang.model.element.TypeElement typeElement) |
java.lang.String |
toString() |
Element |
visit(javax.lang.model.element.Element element,
AnnotationMetadata annotationMetadata)
Invoke the underlying visitor for the given element.
|
public LoadedVisitor(TypeElementVisitor visitor, JavaVisitorContext visitorContext, GenericUtils genericUtils, javax.annotation.processing.ProcessingEnvironment processingEnvironment)
visitor
- The TypeElementVisitor
visitorContext
- The visitor contextgenericUtils
- The generic utilsprocessingEnvironment
- The ProcessEnvironment
public int getOrder()
public TypeElementVisitor getVisitor()
public boolean matches(javax.lang.model.element.TypeElement typeElement)
typeElement
- The class elementpublic boolean matches(AnnotationMetadata annotationMetadata)
annotationMetadata
- The annotation data@Nullable public Element visit(javax.lang.model.element.Element element, AnnotationMetadata annotationMetadata)
element
- The element to visitannotationMetadata
- The annotation data for the nodepublic java.lang.String toString()
toString
in class java.lang.Object