Class LoadedVisitor

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

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

  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered
      Returns:
      The order of the object. Defaults to zero (no order).
    • getVisitor

      public TypeElementVisitor getVisitor()
      Returns:
      The visitor
    • matchesClass

      public boolean matchesClass(AnnotationMetadata annotationMetadata)
      Parameters:
      annotationMetadata - The annotation data
      Returns:
      True if the class element should be visited
    • matchesElement

      public boolean matchesElement(AnnotationMetadata annotationMetadata)
      Parameters:
      annotationMetadata - The annotation data
      Returns:
      True if the element should be visited
    • toString

      public String toString()
      Overrides:
      toString in class Object