Class LoadedVisitor

java.lang.Object
io.micronaut.annotation.processing.visitor.LoadedVisitor
All Implemented Interfaces:
io.micronaut.core.order.Ordered

@Internal public class LoadedVisitor extends Object implements 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
  • Constructor Details

    • LoadedVisitor

      public LoadedVisitor(io.micronaut.inject.visitor.TypeElementVisitor visitor, GenericUtils genericUtils, ProcessingEnvironment processingEnvironment)
      Parameters:
      visitor - The TypeElementVisitor
      genericUtils - The generic utils
      processingEnvironment - The ProcessingEnvironment
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.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

      public String toString()
      Overrides:
      toString in class Object