Class LoadedVisitor
java.lang.Object
io.micronaut.annotation.processing.visitor.LoadedVisitor
- All Implemented Interfaces:
io.micronaut.core.order.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
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionLoadedVisitor(io.micronaut.inject.visitor.TypeElementVisitor visitor, GenericUtils genericUtils, ProcessingEnvironment processingEnvironment) -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()io.micronaut.inject.visitor.TypeElementVisitorbooleanmatchesClass(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) booleanmatchesElement(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) toString()
-
Constructor Details
-
LoadedVisitor
public LoadedVisitor(io.micronaut.inject.visitor.TypeElementVisitor visitor, GenericUtils genericUtils, ProcessingEnvironment processingEnvironment) - Parameters:
visitor- TheTypeElementVisitorgenericUtils- The generic utilsprocessingEnvironment- TheProcessingEnvironment
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered
-
getVisitor
public io.micronaut.inject.visitor.TypeElementVisitor getVisitor()- Returns:
- The visitor
-
matchesClass
public boolean matchesClass(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) - Parameters:
annotationMetadata- The annotation data- Returns:
- True if the class element should be visited
-
matchesElement
public boolean matchesElement(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) - Parameters:
annotationMetadata- The annotation data- Returns:
- True if the element should be visited
-
toString
-