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, throwableTypeelements, 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, toStringisAssignableFrom, isSameAs, isSubtypeOf, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAssignableFrom, isSameAs, isSubtypeOf, typeprivate 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.AptThrowableTypeinit in class ThrowableTypeFactory.AptThrowableTypeparams - the parameters to be processed.public boolean useConstructionParameters()
ThrowableTypetrue, the constructor parameters can be retrieved from the ThrowableType.constructionParameters() method.useConstructionParameters in interface ThrowableTypeuseConstructionParameters in class ThrowableTypeFactory.AptThrowableTypetrue if the throwable has a custom constructor that can be used, otherwise false.public java.util.Set<Parameter> constructionParameters()
ThrowableTypeconstructionParameters in interface ThrowableTypeconstructionParameters in class ThrowableTypeFactory.AptThrowableType