T - The concrete typepublic interface ReturnType<T> extends TypeVariableResolver, AnnotationMetadataProvider
Executable method in Micronaut.EMPTY| Modifier and Type | Method and Description |
|---|---|
default Argument<T> |
asArgument() |
java.lang.Class<T> |
getType() |
default boolean |
isAsync() |
default boolean |
isAsyncOrReactive() |
default boolean |
isCompletable() |
default boolean |
isOptional() |
default boolean |
isReactive() |
default boolean |
isSingleResult() |
default boolean |
isSpecifiedSingle() |
default boolean |
isSuspended() |
default boolean |
isVoid()
Returns whether the return type is logically void.
|
static <T1> ReturnType<T1> |
of(java.lang.Class<T1> type,
Argument<?>... typeArguments)
Create a new return type from the given type and arguments.
|
getFirstTypeVariable, getTypeParameters, getTypeVariable, getTypeVariablesfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotationjava.lang.Class<T> getType()
default boolean isSuspended()
default boolean isReactive()
default boolean isCompletable()
default boolean isSingleResult()
default boolean isSpecifiedSingle()
SingleResult.default boolean isAsync()
default boolean isAsyncOrReactive()
default boolean isVoid()
Completable)
and asynchronous types that emit Void.default boolean isOptional()
Optional.static <T1> ReturnType<T1> of(java.lang.Class<T1> type, Argument<?>... typeArguments)
T1 - The return typetype - The typetypeArguments - The type argumentsReturnType