Class RepositoryTypeElementVisitor

  • All Implemented Interfaces:
    io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable, io.micronaut.inject.visitor.TypeElementVisitor<Repository,​java.lang.Object>

    @Internal
    public class RepositoryTypeElementVisitor
    extends java.lang.Object
    implements io.micronaut.inject.visitor.TypeElementVisitor<Repository,​java.lang.Object>
    The main TypeElementVisitor that visits interfaces annotated with Repository and generates queries for each abstract method.
    Since:
    1.0.0
    Author:
    graemerocher
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor

        io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SPRING_REPO  
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind getVisitorKind()  
      void visitClass​(io.micronaut.inject.ast.ClassElement element, io.micronaut.inject.visitor.VisitorContext context)  
      void visitMethod​(io.micronaut.inject.ast.MethodElement element, io.micronaut.inject.visitor.VisitorContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.core.order.Ordered

        getOrder
      • Methods inherited from interface io.micronaut.core.util.Toggleable

        isEnabled
      • Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor

        finish, getClassType, getElementType, getSupportedAnnotationNames, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField
    • Constructor Detail

      • RepositoryTypeElementVisitor

        public RepositoryTypeElementVisitor()
        Default constructor.
    • Method Detail

      • getVisitorKind

        @NonNull
        public io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind getVisitorKind()
        Specified by:
        getVisitorKind in interface io.micronaut.inject.visitor.TypeElementVisitor<Repository,​java.lang.Object>
      • visitClass

        public void visitClass​(io.micronaut.inject.ast.ClassElement element,
                               io.micronaut.inject.visitor.VisitorContext context)
        Specified by:
        visitClass in interface io.micronaut.inject.visitor.TypeElementVisitor<Repository,​java.lang.Object>
      • visitMethod

        public void visitMethod​(io.micronaut.inject.ast.MethodElement element,
                                io.micronaut.inject.visitor.VisitorContext context)
        Specified by:
        visitMethod in interface io.micronaut.inject.visitor.TypeElementVisitor<Repository,​java.lang.Object>