Class ContextUtils

java.lang.Object
io.micronaut.openapi.visitor.ContextUtils

@Internal public final class ContextUtils extends Object
Convert utilities methods.
Since:
4.5.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.micronaut.core.type.Argument<Map<String,io.micronaut.openapi.visitor.ConfigUtils.CustomSchema>>
     
    static final io.micronaut.core.type.Argument<Map<String,GroupProperties>>
     
    static final io.micronaut.core.type.Argument<Map<String,ConfigUtils.SchemaDecorator>>
     
    static final io.micronaut.core.type.Argument<List<Pair<String,String>>>
     
    static final io.micronaut.core.type.Argument<List<io.swagger.v3.oas.models.servers.Server>>
     
    static final io.micronaut.core.type.Argument<List<io.swagger.v3.oas.models.tags.Tag>>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addGeneratedResource(String path, @Nullable io.micronaut.inject.visitor.VisitorContext context)
     
    static boolean
    contains(String paramName, io.micronaut.inject.visitor.VisitorContext context)
     
    static <T> T
    get(String paramName, io.micronaut.core.type.Argument<T> arg, io.micronaut.inject.visitor.VisitorContext context)
     
    static <T> T
    get(String paramName, io.micronaut.core.type.Argument<T> arg, T defaultValue, io.micronaut.inject.visitor.VisitorContext context)
     
    static <T> T
    get(String paramName, Class<T> arg, io.micronaut.inject.visitor.VisitorContext context)
     
    static <T> T
    get(String paramName, Class<T> arg, T defaultValue, io.micronaut.inject.visitor.VisitorContext context)
     
    static @Nullable io.micronaut.inject.ast.ClassElement
    getClassElement(String className, io.micronaut.inject.visitor.VisitorContext context)
     
    static @Nullable io.micronaut.inject.ast.ClassElement[]
    getClassElements(String packageName, io.micronaut.inject.visitor.VisitorContext context)
     
    static @Nullable Path
    getClassesOutputPath(io.micronaut.inject.visitor.VisitorContext context)
     
    static Map<String,String>
    getOptions(io.micronaut.inject.visitor.VisitorContext context)
     
    static Integer
    getVisitedElements(io.micronaut.inject.visitor.VisitorContext context)
     
    static void
    info(String message, @Nullable io.micronaut.inject.visitor.VisitorContext context)
     
    static void
    info(String message, @Nullable io.micronaut.inject.visitor.VisitorContext context, @Nullable io.micronaut.inject.ast.Element element)
     
    static <T> void
    put(CharSequence paramName, T value, io.micronaut.inject.visitor.VisitorContext context)
     
    static void
    remove(String paramName, io.micronaut.inject.visitor.VisitorContext context)
     
    static @Nullable io.micronaut.inject.writer.GeneratedFile
    visitMetaInfFile(String path, io.micronaut.inject.visitor.VisitorContext context)
     
    static void
    warn(String message, @Nullable io.micronaut.inject.visitor.VisitorContext context)
     
    static void
    warn(String message, @Nullable io.micronaut.inject.visitor.VisitorContext context, @Nullable io.micronaut.inject.ast.Element element)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TAGS_LIST_ARGUMENT

      public static final io.micronaut.core.type.Argument<List<io.swagger.v3.oas.models.tags.Tag>> TAGS_LIST_ARGUMENT
    • SERVERS_LIST_ARGUMENT

      public static final io.micronaut.core.type.Argument<List<io.swagger.v3.oas.models.servers.Server>> SERVERS_LIST_ARGUMENT
    • EXPANDABLE_PROPERTIES_ARGUMENT

      public static final io.micronaut.core.type.Argument<List<Pair<String,String>>> EXPANDABLE_PROPERTIES_ARGUMENT
    • ARGUMENT_SCHEMA_DECORATORS_MAP

      public static final io.micronaut.core.type.Argument<Map<String,ConfigUtils.SchemaDecorator>> ARGUMENT_SCHEMA_DECORATORS_MAP
    • ARGUMENT_CUSTOM_SCHEMA_MAP

      public static final io.micronaut.core.type.Argument<Map<String,io.micronaut.openapi.visitor.ConfigUtils.CustomSchema>> ARGUMENT_CUSTOM_SCHEMA_MAP
    • ARGUMENT_GROUP_PROPERTIES_MAP

      public static final io.micronaut.core.type.Argument<Map<String,GroupProperties>> ARGUMENT_GROUP_PROPERTIES_MAP
  • Method Details

    • getVisitedElements

      public static Integer getVisitedElements(io.micronaut.inject.visitor.VisitorContext context)
    • getClassesOutputPath

      @Nullable public static @Nullable Path getClassesOutputPath(io.micronaut.inject.visitor.VisitorContext context)
    • visitMetaInfFile

      @Nullable public static @Nullable io.micronaut.inject.writer.GeneratedFile visitMetaInfFile(String path, io.micronaut.inject.visitor.VisitorContext context)
    • warn

      public static void warn(String message, @Nullable @Nullable io.micronaut.inject.visitor.VisitorContext context)
    • warn

      public static void warn(String message, @Nullable @Nullable io.micronaut.inject.visitor.VisitorContext context, @Nullable @Nullable io.micronaut.inject.ast.Element element)
    • info

      public static void info(String message, @Nullable @Nullable io.micronaut.inject.visitor.VisitorContext context)
    • info

      public static void info(String message, @Nullable @Nullable io.micronaut.inject.visitor.VisitorContext context, @Nullable @Nullable io.micronaut.inject.ast.Element element)
    • addGeneratedResource

      public static void addGeneratedResource(String path, @Nullable @Nullable io.micronaut.inject.visitor.VisitorContext context)
    • get

      public static <T> T get(String paramName, io.micronaut.core.type.Argument<T> arg, io.micronaut.inject.visitor.VisitorContext context)
    • get

      public static <T> T get(String paramName, io.micronaut.core.type.Argument<T> arg, T defaultValue, io.micronaut.inject.visitor.VisitorContext context)
    • get

      public static <T> T get(String paramName, Class<T> arg, io.micronaut.inject.visitor.VisitorContext context)
    • get

      public static <T> T get(String paramName, Class<T> arg, T defaultValue, io.micronaut.inject.visitor.VisitorContext context)
    • put

      public static <T> void put(CharSequence paramName, T value, io.micronaut.inject.visitor.VisitorContext context)
    • remove

      public static void remove(String paramName, io.micronaut.inject.visitor.VisitorContext context)
    • contains

      public static boolean contains(String paramName, io.micronaut.inject.visitor.VisitorContext context)
    • getOptions

      public static Map<String,String> getOptions(io.micronaut.inject.visitor.VisitorContext context)
    • getClassElement

      @Nullable public static @Nullable io.micronaut.inject.ast.ClassElement getClassElement(String className, io.micronaut.inject.visitor.VisitorContext context)
    • getClassElements

      @Nullable public static @Nullable io.micronaut.inject.ast.ClassElement[] getClassElements(String packageName, io.micronaut.inject.visitor.VisitorContext context)