Consider the following example involving a type target using the Bar annotation:
public List<@Bar T> foo() { ... }
This example would be represented as an EmptyTypeTarget with an enclosing target
of the MethodInfo of foo, and isReceiver() would be false.
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public EmptyTypeTarget | |
| public boolean | Returns: true if the annotated type occurs within a method receiver type, otherwise falseReturns whether the annotated type occurs within a method receiver (the |
| public final TypeTarget. | usage()
Implements abstract org. |
| receiver | back to summary |
|---|---|
| private boolean receiver | |
| EmptyTypeTarget | back to summary |
|---|---|
| pack-priv EmptyTypeTarget(AnnotationTarget enclosingTarget, boolean receiver) | |
| EmptyTypeTarget | back to summary |
|---|---|
| pack-priv EmptyTypeTarget(AnnotationTarget enclosingTarget, Type target, boolean receiver) | |
| asEmpty | back to summary |
|---|---|
| public EmptyTypeTarget asEmpty() Overrides org.
| |
| isReceiver | back to summary |
|---|---|
| public boolean isReceiver() Returns whether the annotated type occurs within a method receiver (the
| |
| usage | back to summary |
|---|---|
| public final 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
| |