Package io.micronaut.openapi.visitor
Class ContextUtils
java.lang.Object
io.micronaut.openapi.visitor.ContextUtils
Convert utilities methods.
- Since:
- 4.5.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final io.micronaut.core.type.Argument<Map<String,
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<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 TypeMethodDescriptionstatic void
addGeneratedResource
(String path, @Nullable io.micronaut.inject.visitor.VisitorContext context) static boolean
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
static <T> T
get
(String paramName, Class<T> arg, T defaultValue, io.micronaut.inject.visitor.VisitorContext context) static io.micronaut.inject.ast.ClassElement
getClassElement
(String className, io.micronaut.inject.visitor.VisitorContext context) static Path
getClassesOutputPath
(io.micronaut.inject.visitor.VisitorContext context) getOptions
(io.micronaut.inject.visitor.VisitorContext context) static Integer
getVisitedElements
(io.micronaut.inject.visitor.VisitorContext context) static void
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
static io.micronaut.inject.writer.GeneratedFile
visitMetaInfFile
(String path, io.micronaut.inject.visitor.VisitorContext context) static void
static void
warn
(String message, @Nullable io.micronaut.inject.visitor.VisitorContext context, @Nullable io.micronaut.inject.ast.Element element)
-
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
-
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,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
-
getClassesOutputPath
-
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
-
get
-
put
public static <T> void put(CharSequence paramName, T value, io.micronaut.inject.visitor.VisitorContext context) -
remove
-
contains
public static boolean contains(String paramName, io.micronaut.inject.visitor.VisitorContext context) -
getOptions
-
getClassElement
public static io.micronaut.inject.ast.ClassElement getClassElement(String className, io.micronaut.inject.visitor.VisitorContext context)
-