private static class ThrowableTypeFactory.AptReturnThrowableType extends ThrowableTypeFactory.AptThrowableType
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Parameter> |
constructionParameters |
private MessageMethod |
messageMethod |
private boolean |
useConstructionParameters |
stringType, throwableType
elements, typeMirror, types
Modifier | Constructor and Description |
---|---|
private |
AptReturnThrowableType(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
MessageMethod messageMethod,
javax.lang.model.type.TypeMirror type)
Creates a new descriptor that is not primitive.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Parameter> |
constructionParameters()
The parameters needed to construct the throwable, if not using the default constructor.
|
protected void |
init(java.util.List<? extends javax.lang.model.element.VariableElement> params)
Allows for additional processing of parameters.
|
boolean |
useConstructionParameters()
Checks to see if the throwable has and can use a custom constructor.
|
compareTo, equals, hasDefaultConstructor, hashCode, hasStringAndThrowableConstructor, hasStringConstructor, hasThrowableAndStringConstructor, hasThrowableConstructor, init, isChecked, name, reference, toString
isAssignableFrom, isSameAs, isSubtypeOf, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isAssignableFrom, isSameAs, isSubtypeOf, type
private final MessageMethod messageMethod
private final java.util.Set<Parameter> constructionParameters
private boolean useConstructionParameters
private AptReturnThrowableType(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types, MessageMethod messageMethod, javax.lang.model.type.TypeMirror type)
types
- the type utilities from the annotation processor.elements
- the element utilities from the annotation processor.messageMethod
- the message method.type
- the class name of the return type.protected void init(java.util.List<? extends javax.lang.model.element.VariableElement> params)
ThrowableTypeFactory.AptThrowableType
init
in class ThrowableTypeFactory.AptThrowableType
params
- the parameters to be processed.public boolean useConstructionParameters()
ThrowableType
true
, the constructor parameters can be retrieved from the ThrowableType.constructionParameters()
method.useConstructionParameters
in interface ThrowableType
useConstructionParameters
in class ThrowableTypeFactory.AptThrowableType
true
if the throwable has a custom constructor that can be used, otherwise false
.public java.util.Set<Parameter> constructionParameters()
ThrowableType
constructionParameters
in interface ThrowableType
constructionParameters
in class ThrowableTypeFactory.AptThrowableType