public interface ReturnType extends ClassType, DelegatingElement
| Modifier and Type | Method and Description |
|---|---|
boolean |
isThrowable()
Checks to see if the return type is an exception, extends Throwable or the value of a
Supplier is a Throwable type. |
String |
name()
Returns the qualified class name of the return type.
|
default TypeMirror |
resolvedType()
Checks this type to see if there are any
type arguments.
|
ThrowableType |
throwableReturnType()
Returns the exception return type if
isThrowable() returns true. |
isAssignableFrom, isSameAs, isSubtypeOfaccept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDelegate, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWithboolean isThrowable()
Supplier is a Throwable type.true if the return type is an exception, otherwise false.resolvedType()String name()
ThrowableType throwableReturnType()
null.default TypeMirror resolvedType()
This is useful for the Supplier return type.
Copyright © 2019 JBoss by Red Hat. All rights reserved.