throws clause of an enclosing method.
This class conveys the enclosing method and the zero-based position of the throwable type.
The corresponding type reference is also included.
Consider the following example involving a type target using the Bar annotation:
public void foo(List<T> l) throws @Bar FooException { ... }
This example would be represented as a ThrowsTypeTarget with an enclosing target
of the MethodInfo of foo, and position() would be 0.
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ThrowsTypeTarget | asThrows()
Overrides org. ThrowsTypeTarget.
|
| public MethodInfo | enclosingTarget()
Overrides org. target() method.
|
| public TypeTarget. | usage()
Implements abstract org. |
| ThrowsTypeTarget | back to summary |
|---|---|
| pack-priv ThrowsTypeTarget(MethodInfo enclosingTarget, int position) | |
| ThrowsTypeTarget | back to summary |
|---|---|
| pack-priv ThrowsTypeTarget(AnnotationTarget enclosingTarget, Type target, int position) | |
| asThrows | back to summary |
|---|---|
| public ThrowsTypeTarget asThrows() Overrides org. Doc from org. Casts and returns this type target as a
| |
| enclosingTarget | back to summary |
|---|---|
| public MethodInfo enclosingTarget() Overrides org. Doc from org. Returns the enclosing target that contains the type referred to by the
| |
| usage | back to summary |
|---|---|
| public TypeTarget. Implements abstract org. Doc from org. Returns the kind of usage of this type target. This allows a caller to use a switch statement
as opposed to
| |