Class OpenApiIncludeVisitor

java.lang.Object
io.micronaut.openapi.visitor.OpenApiIncludeVisitor
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable, io.micronaut.inject.visitor.TypeElementVisitor<OpenAPIIncludes,Object>

@SupportedOptions("micronaut.openapi.enabled") public class OpenApiIncludeVisitor extends Object implements io.micronaut.inject.visitor.TypeElementVisitor<OpenAPIIncludes,Object>
A TypeElementVisitor that builds the Swagger model from Micronaut controllers included by @OpenAPIInclude at the compile time.
Author:
Denis Stepanov
  • Nested Class Summary

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

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

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(io.micronaut.inject.visitor.VisitorContext context)
     
    void
    visitClass(io.micronaut.inject.ast.ClassElement 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, getVisitorKind, visitConstructor, visitEnumConstant, visitField, visitMethod
  • Constructor Details

    • OpenApiIncludeVisitor

      public OpenApiIncludeVisitor()
  • Method Details

    • start

      public void start(io.micronaut.inject.visitor.VisitorContext context)
      Specified by:
      start in interface io.micronaut.inject.visitor.TypeElementVisitor<OpenAPIIncludes,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<OpenAPIIncludes,Object>