public abstract class TargetInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
TARGET_TYPE_ARGUMENT_GENERIC_METHOD |
static byte |
TARGET_TYPE_ARGUMENT_GENERIC_METHODNew |
static byte |
TARGET_TYPE_ARGUMENT_GENERIC_METHODReference |
static byte |
TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew |
static byte |
TARGET_TYPE_BOUND_GENERIC_CLASS |
static byte |
TARGET_TYPE_BOUND_GENERIC_METHOD |
static byte |
TARGET_TYPE_CAST |
static byte |
TARGET_TYPE_CATCH |
static byte |
TARGET_TYPE_EXTENDS |
static byte |
TARGET_TYPE_FIELD |
static byte |
TARGET_TYPE_INSTANCE_OF |
static byte |
TARGET_TYPE_LOCAL_VARIABLE |
static byte |
TARGET_TYPE_METHOD_REFERENCE |
static byte |
TARGET_TYPE_METHOD_REFERENCE_NEW |
static byte |
TARGET_TYPE_NEW |
static byte |
TARGET_TYPE_PARAMETER |
static byte |
TARGET_TYPE_PARAMETER_GENERIC_CLASS |
static byte |
TARGET_TYPE_PARAMETER_GENERIC_METHOD |
static byte |
TARGET_TYPE_RECEIVER |
static byte |
TARGET_TYPE_RESOURCE_VARIABLE |
static byte |
TARGET_TYPE_RETURN |
static byte |
TARGET_TYPE_THROWS |
byte |
u1targetType |
Modifier | Constructor and Description |
---|---|
protected |
TargetInfo()
Creates an uninitialized TargetInfo.
|
protected |
TargetInfo(byte u1targetType)
Creates an initialized TargetInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Clazz clazz,
Field field,
TypeAnnotation typeAnnotation,
TargetInfoVisitor targetInfoVisitor)
Accepts the given visitor, in the context of a type annotation on a field.
|
void |
accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
TypeAnnotation typeAnnotation,
TargetInfoVisitor targetInfoVisitor)
Accepts the given visitor, in the context of a type annotation code.
|
void |
accept(Clazz clazz,
Method method,
TypeAnnotation typeAnnotation,
TargetInfoVisitor targetInfoVisitor)
Accepts the given visitor, in the context of a type annotation on a method.
|
void |
accept(Clazz clazz,
TypeAnnotation typeAnnotation,
TargetInfoVisitor targetInfoVisitor)
Accepts the given visitor, in the context of a type annotation on a class.
|
byte |
getTargetType()
Returns the type of the target.
|
public static final byte TARGET_TYPE_PARAMETER_GENERIC_CLASS
public static final byte TARGET_TYPE_PARAMETER_GENERIC_METHOD
public static final byte TARGET_TYPE_EXTENDS
public static final byte TARGET_TYPE_BOUND_GENERIC_CLASS
public static final byte TARGET_TYPE_BOUND_GENERIC_METHOD
public static final byte TARGET_TYPE_FIELD
public static final byte TARGET_TYPE_RETURN
public static final byte TARGET_TYPE_RECEIVER
public static final byte TARGET_TYPE_PARAMETER
public static final byte TARGET_TYPE_THROWS
public static final byte TARGET_TYPE_LOCAL_VARIABLE
public static final byte TARGET_TYPE_RESOURCE_VARIABLE
public static final byte TARGET_TYPE_CATCH
public static final byte TARGET_TYPE_INSTANCE_OF
public static final byte TARGET_TYPE_NEW
public static final byte TARGET_TYPE_METHOD_REFERENCE_NEW
public static final byte TARGET_TYPE_METHOD_REFERENCE
public static final byte TARGET_TYPE_CAST
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODNew
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHOD
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODReference
public byte u1targetType
protected TargetInfo()
protected TargetInfo(byte u1targetType)
public byte getTargetType()
public void accept(Clazz clazz, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
public void accept(Clazz clazz, Field field, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
public void accept(Clazz clazz, Method method, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)