@Internal
public final class ElementUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
CONTAINER_TYPES |
static java.util.List<java.lang.String> |
FILE_TYPES |
static java.util.List<java.lang.String> |
VOID_TYPES |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isContainerType(io.micronaut.inject.ast.ClassElement type)
Checking if the type is container.
|
static boolean |
isFileUpload(io.micronaut.inject.ast.ClassElement type)
Checking if the type is file upload type.
|
static boolean |
isJavaElement(io.micronaut.inject.ast.ClassElement classElement,
io.micronaut.inject.visitor.VisitorContext context)
Returns true if classElement is a JavaClassElement.
|
static boolean |
isNullable(io.micronaut.inject.ast.TypedElement element)
Checks Nullable annotions / optinal type to understand that the element can be null.
|
static boolean |
isReactiveAndVoid(io.micronaut.inject.ast.ClassElement type)
Checking if the type is void.
|
static boolean |
isReturnTypeFile(io.micronaut.inject.ast.ClassElement type)
Checking if the type is file.
|
static boolean |
isVoid(io.micronaut.inject.ast.ClassElement type)
Checking if the type is void.
|
public static final java.util.List<java.lang.String> CONTAINER_TYPES
public static final java.util.List<java.lang.String> FILE_TYPES
public static final java.util.List<java.lang.String> VOID_TYPES
public static boolean isJavaElement(io.micronaut.inject.ast.ClassElement classElement,
io.micronaut.inject.visitor.VisitorContext context)
classElement - A ClassElement.context - The context.public static boolean isNullable(io.micronaut.inject.ast.TypedElement element)
element - typed elementpublic static boolean isFileUpload(io.micronaut.inject.ast.ClassElement type)
type - type elementpublic static boolean isReturnTypeFile(io.micronaut.inject.ast.ClassElement type)
type - type elementpublic static boolean isContainerType(io.micronaut.inject.ast.ClassElement type)
type - type elementpublic static boolean isVoid(io.micronaut.inject.ast.ClassElement type)
type - type elementpublic static boolean isReactiveAndVoid(io.micronaut.inject.ast.ClassElement type)
type - type element