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 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
    • ARGUMENT_BOOLEAN

      public static final io.micronaut.core.type.Argument<Boolean> ARGUMENT_BOOLEAN
  • Method Details

    • getVisitedElements

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

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

      public static 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

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