Interface ReturnType
-
- All Superinterfaces:
javax.lang.model.AnnotatedConstruct,ClassType,DelegatingElement,javax.lang.model.element.Element
- All Known Implementing Classes:
ReturnTypeFactory.AptReturnType,ReturnTypeFactory.VoidReturnType
public interface ReturnType extends ClassType, DelegatingElement
Date: 29.07.2011
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanisThrowable()Checks to see if the return type is an exception, extends Throwable or the value of aSupplieris a Throwable type.java.lang.Stringname()Returns the qualified class name of the return type.default javax.lang.model.type.TypeMirrorresolvedType()Checks this type to see if there are any type arguments.ThrowableTypethrowableReturnType()Returns the exception return type ifisThrowable()returnstrue.-
Methods inherited from interface org.jboss.logging.processor.model.ClassType
isAssignableFrom, isSameAs, isSubtypeOf
-
Methods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDelegate, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWith
-
-
-
-
Method Detail
-
isThrowable
boolean isThrowable()
Checks to see if the return type is an exception, extends Throwable or the value of aSupplieris a Throwable type.- Returns:
trueif the return type is an exception, otherwisefalse.- See Also:
resolvedType()
-
name
java.lang.String name()
Returns the qualified class name of the return type.- Returns:
- the qualified class name fo the return type.
-
throwableReturnType
ThrowableType throwableReturnType()
- Returns:
- an exception return type, otherwise
null.
-
resolvedType
default javax.lang.model.type.TypeMirror resolvedType()
Checks this type to see if there are any type arguments. If any type arguments are found the first type is returned and assumed to be the resolved type. Otherwise this type is returned.This is useful for the
Supplierreturn type.- Returns:
- the resolved return type
-
-