@Internal
public class LoadedVisitor
extends java.lang.Object
implements io.micronaut.core.order.Ordered
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(io.micronaut.inject.visitor.TypeElementVisitor visitor,
JavaVisitorContext visitorContext,
GenericUtils genericUtils,
javax.annotation.processing.ProcessingEnvironment processingEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
io.micronaut.inject.visitor.TypeElementVisitor |
getVisitor() |
boolean |
matches(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) |
boolean |
matches(javax.lang.model.element.TypeElement typeElement) |
java.lang.String |
toString() |
io.micronaut.inject.ast.Element |
visit(javax.lang.model.element.Element element,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
Invoke the underlying visitor for the given element.
|
public LoadedVisitor(io.micronaut.inject.visitor.TypeElementVisitor visitor,
JavaVisitorContext visitorContext,
GenericUtils genericUtils,
javax.annotation.processing.ProcessingEnvironment processingEnvironment)
visitor - The TypeElementVisitorvisitorContext - The visitor contextgenericUtils - The generic utilsprocessingEnvironment - The ProcessingEnvironmentpublic int getOrder()
getOrder in interface io.micronaut.core.order.Orderedpublic io.micronaut.inject.visitor.TypeElementVisitor getVisitor()
public boolean matches(javax.lang.model.element.TypeElement typeElement)
typeElement - The class elementpublic boolean matches(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
annotationMetadata - The annotation data@Nullable
public io.micronaut.inject.ast.Element visit(javax.lang.model.element.Element element,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
element - The element to visitannotationMetadata - The annotation data for the nodepublic java.lang.String toString()
toString in class java.lang.Object