Interface ThrowableType
- All Superinterfaces:
AnnotatedConstruct,ClassType,Comparable<ThrowableType>,DelegatingElement,Element
Date: 27.09.2011
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanIndicates whether or not the cause was set in the constructor.The parameters needed to construct the throwable, if not using the default constructor.booleanChecks to see the throwable has a default constructor.booleanChecks to see if the throwable has a string and throwable (Throwable(String, Throwable)) constructor.booleanChecks to see if the throwable has a string (Throwable(String)) constructor.booleanChecks to see if the throwable has a throwable and string (Throwable(Throwable, String)) constructor.booleanChecks to see if the throwable has a string and throwable (Throwable(String, Throwable)) constructor.booleanChecks if the throwable is a checked exception.name()Returns the qualified class name of the return type.default Collection<ThrowableType> The suggested types to create for the throwable type created.booleanChecks to see if the throwable has and can use a custom constructor.Methods inherited from interface org.jboss.logging.processor.model.ClassType
isAssignableFrom, isSameAs, isSubtypeOfMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.jboss.logging.processor.model.DelegatingElement
accept, asType, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDelegate, getEnclosedElements, getEnclosingElement, getKind, getModifiers, getSimpleName, isAnnotatedWith
-
Method Details
-
hasDefaultConstructor
boolean hasDefaultConstructor()Checks to see the throwable has a default constructor.- Returns:
trueif the throwable has a default constructor, otherwisefalse.
-
hasStringAndThrowableConstructor
boolean hasStringAndThrowableConstructor()Checks to see if the throwable has a string and throwable (Throwable(String, Throwable)) constructor.- Returns:
trueif the throwable has both a string and throwable constructor, otherwisefalse.
-
hasStringConstructor
boolean hasStringConstructor()Checks to see if the throwable has a string (Throwable(String)) constructor. Iftrue,Throwable.initCause(Throwable)can be used to set the throwable.- Returns:
trueif the throwable has a string constructor, otherwisefalse.
-
hasThrowableAndStringConstructor
boolean hasThrowableAndStringConstructor()Checks to see if the throwable has a throwable and string (Throwable(Throwable, String)) constructor.- Returns:
trueif the throwable has both a throwable and string constructor, otherwisefalse.
-
hasThrowableConstructor
boolean hasThrowableConstructor()Checks to see if the throwable has a string and throwable (Throwable(String, Throwable)) constructor.- Returns:
trueif the throwable has a throwable constructor, otherwisefalse.
-
useConstructionParameters
boolean useConstructionParameters()Checks to see if the throwable has and can use a custom constructor. Iftrue, the constructor parameters can be retrieved from theconstructionParameters()method.- Returns:
trueif the throwable has a custom constructor that can be used, otherwisefalse.
-
causeSetInConstructor
default boolean causeSetInConstructor()Indicates whether or not the cause was set in the constructor.- Returns:
trueif the cause was set in the constructor,falseif theThrowable.initCause(Throwable)should be executed
-
constructionParameters
The parameters needed to construct the throwable, if not using the default constructor. If the default constructor should be used an empty set should be returned. The order the set is returned is the order in which the parameters must be in for the constructor.- Returns:
- a set of construction parameters or an empty set.
-
isChecked
boolean isChecked()Checks if the throwable is a checked exception. If the throwable is a checked exception,trueis returned, otherwisefalse.- Returns:
trueif the throwable is a checked exception, otherwisefalse.
-
name
String name()Returns the qualified class name of the return type.- Returns:
- the qualified class name fo the return type.
-
suggestions
The suggested types to create for the throwable type created.- Returns:
- the suggested types to be created, or an empty set if this type itself should be created
-