Consider the following example involving a type target using the Bar annotation:
public void foo(List<@Bar T> l) { ... }
This example would be represented as a MethodParameterTypeTarget 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 MethodParameterTypeTarget | asMethodParameterType()
Overrides org. MethodParameterTypeTarget.
|
| public MethodInfo | enclosingTarget()
Overrides org. target() method.
|
| public final TypeTarget. | usage()
Implements abstract org. |
| MethodParameterTypeTarget | back to summary |
|---|---|
| pack-priv MethodParameterTypeTarget(MethodInfo enclosingTarget, int position) | |
| MethodParameterTypeTarget | back to summary |
|---|---|
| pack-priv MethodParameterTypeTarget(AnnotationTarget enclosingTarget, Type target, int position) | |
| asMethodParameterType | back to summary |
|---|---|
| public MethodParameterTypeTarget asMethodParameterType() 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 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
| |