This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Field and Description |
|---|---|
| public static final TargetType | CAST
For annotations on a typecast. |
| public static final TargetType | CLASS_EXTENDS
For annotations on the type of an "extends" or "implements" clause. |
| public static final TargetType | CLASS_TYPE_PARAMETER
For annotations on a class type parameter declaration. |
| public static final TargetType | CLASS_TYPE_PARAMETER_BOUND
For annotations on a bound of a type parameter of a class. |
| public static final TargetType | CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT
For annotations on a type argument of an object creation expression. |
| public static final TargetType | CONSTRUCTOR_REFERENCE
For annotations on a constructor reference receiver. |
| public static final TargetType | CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT
For annotations on a type argument of a constructor reference. |
| public static final TargetType | EXCEPTION_PARAMETER
For annotations on an exception parameter. |
| public static final TargetType | FIELD
For annotations on a field. |
| public static final TargetType | INSTANCEOF
For annotations on a type test. |
| private final boolean | |
| public static final TargetType | LOCAL_VARIABLE
For annotations on a local variable. |
| private static final int | |
| public static final TargetType | METHOD_FORMAL_PARAMETER
For annotations on a method parameter. |
| public static final TargetType | METHOD_INVOCATION_TYPE_ARGUMENT
For annotations on a type argument of a method call. |
| public static final TargetType | METHOD_RECEIVER
For annotations on the method receiver. |
| public static final TargetType | METHOD_REFERENCE
For annotations on a method reference receiver. |
| public static final TargetType | METHOD_REFERENCE_TYPE_ARGUMENT
For annotations on a type argument of a method reference. |
| public static final TargetType | METHOD_RETURN
For annotations on a method return type. |
| public static final TargetType | METHOD_TYPE_PARAMETER
For annotations on a method type parameter declaration. |
| public static final TargetType | METHOD_TYPE_PARAMETER_BOUND
For annotations on a bound of a type parameter of a method. |
| public static final TargetType | NEW
For annotations on an object creation expression. |
| public static final TargetType | RESOURCE_VARIABLE
For annotations on a resource variable. |
| private static final TargetType[] | |
| private final int | |
| public static final TargetType | THROWS
For annotations on a throws clause in a method declaration. |
| public static final TargetType | UNKNOWN
For annotations with an unknown target. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TargetType | |
| public boolean | isLocal()
Returns whether or not this TargetType represents an annotation whose target is exclusively a tree in a method body Note: wildcard bound targets could target a local tree and a class member declaration signature tree |
| public static boolean | |
| public int | |
| public static TargetType | |
| public static TargetType[] |
| CAST | back to summary |
|---|---|
| public static final TargetType CAST For annotations on a typecast. | |
| CLASS_EXTENDS | back to summary |
|---|---|
| public static final TargetType CLASS_EXTENDS For annotations on the type of an "extends" or "implements" clause. | |
| CLASS_TYPE_PARAMETER | back to summary |
|---|---|
| public static final TargetType CLASS_TYPE_PARAMETER For annotations on a class type parameter declaration. | |
| CLASS_TYPE_PARAMETER_BOUND | back to summary |
|---|---|
| public static final TargetType CLASS_TYPE_PARAMETER_BOUND For annotations on a bound of a type parameter of a class. | |
| CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT | back to summary |
|---|---|
| public static final TargetType CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT For annotations on a type argument of an object creation expression. | |
| CONSTRUCTOR_REFERENCE | back to summary |
|---|---|
| public static final TargetType CONSTRUCTOR_REFERENCE For annotations on a constructor reference receiver. | |
| CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT | back to summary |
|---|---|
| public static final TargetType CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT For annotations on a type argument of a constructor reference. | |
| EXCEPTION_PARAMETER | back to summary |
|---|---|
| public static final TargetType EXCEPTION_PARAMETER For annotations on an exception parameter. | |
| FIELD | back to summary |
|---|---|
| public static final TargetType FIELD For annotations on a field. | |
| INSTANCEOF | back to summary |
|---|---|
| public static final TargetType INSTANCEOF For annotations on a type test. | |
| isLocal | back to summary |
|---|---|
| private final boolean isLocal | |
| LOCAL_VARIABLE | back to summary |
|---|---|
| public static final TargetType LOCAL_VARIABLE For annotations on a local variable. | |
| MAXIMUM_TARGET_TYPE_VALUE | back to summary |
|---|---|
| private static final int MAXIMUM_TARGET_TYPE_VALUE | |
| METHOD_FORMAL_PARAMETER | back to summary |
|---|---|
| public static final TargetType METHOD_FORMAL_PARAMETER For annotations on a method parameter. | |
| METHOD_INVOCATION_TYPE_ARGUMENT | back to summary |
|---|---|
| public static final TargetType METHOD_INVOCATION_TYPE_ARGUMENT For annotations on a type argument of a method call. | |
| METHOD_RECEIVER | back to summary |
|---|---|
| public static final TargetType METHOD_RECEIVER For annotations on the method receiver. | |
| METHOD_REFERENCE | back to summary |
|---|---|
| public static final TargetType METHOD_REFERENCE For annotations on a method reference receiver. | |
| METHOD_REFERENCE_TYPE_ARGUMENT | back to summary |
|---|---|
| public static final TargetType METHOD_REFERENCE_TYPE_ARGUMENT For annotations on a type argument of a method reference. | |
| METHOD_RETURN | back to summary |
|---|---|
| public static final TargetType METHOD_RETURN For annotations on a method return type. | |
| METHOD_TYPE_PARAMETER | back to summary |
|---|---|
| public static final TargetType METHOD_TYPE_PARAMETER For annotations on a method type parameter declaration. | |
| METHOD_TYPE_PARAMETER_BOUND | back to summary |
|---|---|
| public static final TargetType METHOD_TYPE_PARAMETER_BOUND For annotations on a bound of a type parameter of a method. | |
| NEW | back to summary |
|---|---|
| public static final TargetType NEW For annotations on an object creation expression. | |
| RESOURCE_VARIABLE | back to summary |
|---|---|
| public static final TargetType RESOURCE_VARIABLE For annotations on a resource variable. | |
| targets | back to summary |
|---|---|
| private static final TargetType[] targets | |
| targetTypeValue | back to summary |
|---|---|
| private final int targetTypeValue | |
| THROWS | back to summary |
|---|---|
| public static final TargetType THROWS For annotations on a throws clause in a method declaration. | |
| UNKNOWN | back to summary |
|---|---|
| public static final TargetType UNKNOWN For annotations with an unknown target. | |
| TargetType | back to summary |
|---|---|
| private TargetType(int targetTypeValue) | |
| TargetType | back to summary |
|---|---|
| private TargetType(int targetTypeValue, boolean isLocal) | |
| fromTargetTypeValue | back to summary |
|---|---|
| public static TargetType fromTargetTypeValue(int tag) | |
| isLocal | back to summary |
|---|---|
| public boolean isLocal() Returns whether or not this TargetType represents an annotation whose target is exclusively a tree in a method body Note: wildcard bound targets could target a local tree and a class member declaration signature tree | |
| isValidTargetTypeValue | back to summary |
|---|---|
| public static boolean isValidTargetTypeValue(int tag) | |
| targetTypeValue | back to summary |
|---|---|
| public int targetTypeValue() | |
| valueOf | back to summary |
|---|---|
| public static TargetType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static TargetType[] values() | |