final class ThrowableTypeFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
ThrowableTypeFactory.AptReturnThrowableType |
private static class |
ThrowableTypeFactory.AptThrowableType |
| Modifier | Constructor and Description |
|---|---|
private |
ThrowableTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ThrowableType |
forReturnType(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.type.TypeMirror type,
MessageMethod messageMethod)
Creates a new descriptor that is not primitive.
|
static ThrowableType |
of(javax.lang.model.util.Elements elements,
javax.lang.model.util.Types types,
javax.lang.model.type.TypeMirror type)
Creates a new descriptor that is not primitive.
|
public static ThrowableType forReturnType(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types, javax.lang.model.type.TypeMirror type, MessageMethod messageMethod)
elements - the element utilities from the annotation processor.types - the type utilities from the annotation process.type - the class name of the return type.messageMethod - the message method.public static ThrowableType of(javax.lang.model.util.Elements elements, javax.lang.model.util.Types types, javax.lang.model.type.TypeMirror type)
elements - the element utilities from the annotation processor.types - the type utilities from the annotation process.type - the class name of the return type.