public interface ReturnType extends ClassType, DelegatingElement
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPrimitive()
Indicates whether or not the return type is a primitive.
|
boolean |
isThrowable()
Checks to see if the return type is an exception, extends Throwable.
|
String |
name()
Returns the qualified class name of the return type.
|
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()
true if the return type is an exception, otherwise false.boolean isPrimitive()
true if a primitive, otherwise false.String name()
ThrowableType throwableReturnType()
null.Copyright © 2016 JBoss by Red Hat. All rights reserved.