Consider the following example involving a type target using the Bar annotation:
public <T extends Number & @Bar Serializable> void foo(List<T> l) { ... }
This example would be represented as a TypeParameterBoundTypeTarget with an enclosing target
of the MethodInfo of foo, position() would be 0 and boundPosition() would be 1.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private short |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | TypeParameterBoundTypeTarget(AnnotationTarget enclosingTarget, Type target, int position, int boundPosition)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public TypeParameterBoundTypeTarget | asTypeParameterBound()
Overrides org. TypeParameterBoundTypeTarget.
|
| public final int | Returns: the index of the bound this type annotation is withinReturns the index of the bound this type annotation is within. |
| public final TypeTarget. | usage()
Returns the kind of usage of this type target.
|
| adjusted | back to summary |
|---|---|
| private boolean adjusted | |
| boundPosition | back to summary |
|---|---|
| private short boundPosition | |
| TypeParameterBoundTypeTarget | back to summary |
|---|---|
| pack-priv TypeParameterBoundTypeTarget(AnnotationTarget enclosingTarget, int position, int boundPosition) | |
| TypeParameterBoundTypeTarget | back to summary |
|---|---|
| pack-priv TypeParameterBoundTypeTarget(AnnotationTarget enclosingTarget, Type target, int position, int boundPosition) | |
| adjustBoundDown | back to summary |
|---|---|
| pack-priv void adjustBoundDown() | |
| asTypeParameterBound | back to summary |
|---|---|
| public TypeParameterBoundTypeTarget asTypeParameterBound() Overrides org. Doc from org. Casts and returns this type target as a
| |
| boundPosition | back to summary |
|---|---|
| public final int boundPosition() Returns the index of the bound this type annotation is within.
| |
| usage | back to summary |
|---|---|
| public final TypeTarget. Overrides 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
| |