Class LoadedVisitor
java.lang.Object
io.micronaut.annotation.processing.visitor.LoadedVisitor
- All Implemented Interfaces:
Ordered
Used to store a reference to an underlying
TypeElementVisitor
and
optionally invoke the visit methods on the visitor if it matches the
element being visited by the annotation processor.- Since:
- 1.0
- Author:
- James Kleeh
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionLoadedVisitor
(TypeElementVisitor visitor, GenericUtils genericUtils, ProcessingEnvironment processingEnvironment) -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
boolean
matchesClass
(AnnotationMetadata annotationMetadata) boolean
matchesElement
(AnnotationMetadata annotationMetadata) toString()
-
Constructor Details
-
LoadedVisitor
public LoadedVisitor(TypeElementVisitor visitor, GenericUtils genericUtils, ProcessingEnvironment processingEnvironment) - Parameters:
visitor
- TheTypeElementVisitor
genericUtils
- The generic utilsprocessingEnvironment
- TheProcessingEnvironment
-
-
Method Details
-
getOrder
public int getOrder() -
getVisitor
- Returns:
- The visitor
-
matchesClass
- Parameters:
annotationMetadata
- The annotation data- Returns:
- True if the class element should be visited
-
matchesElement
- Parameters:
annotationMetadata
- The annotation data- Returns:
- True if the element should be visited
-
toString
-