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