类 TargetInfo
java.lang.Object
proguard.classfile.attribute.annotation.target.TargetInfo
- 直接已知子类:
CatchTargetInfo,EmptyTargetInfo,FormalParameterTargetInfo,LocalVariableTargetInfo,OffsetTargetInfo,SuperTypeTargetInfo,ThrowsTargetInfo,TypeArgumentTargetInfo,TypeParameterBoundTargetInfo,TypeParameterTargetInfo
Representation of an annotation target.
-
字段概要
字段修饰符和类型字段说明static final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytebyte -
构造器概要
构造器限定符构造器说明protectedCreates an uninitialized TargetInfo.protectedTargetInfo(byte u1targetType) Creates an initialized TargetInfo. -
方法概要
修饰符和类型方法说明voidaccept(Clazz clazz, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation on a class.voidaccept(Clazz clazz, Field field, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation on a field.voidaccept(Clazz clazz, Method method, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation on a method.voidaccept(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation code.byteReturns the type of the target.
-
字段详细资料
-
TARGET_TYPE_PARAMETER_GENERIC_CLASS
public static final byte TARGET_TYPE_PARAMETER_GENERIC_CLASS- 另请参阅:
-
TARGET_TYPE_PARAMETER_GENERIC_METHOD
public static final byte TARGET_TYPE_PARAMETER_GENERIC_METHOD- 另请参阅:
-
TARGET_TYPE_EXTENDS
public static final byte TARGET_TYPE_EXTENDS- 另请参阅:
-
TARGET_TYPE_BOUND_GENERIC_CLASS
public static final byte TARGET_TYPE_BOUND_GENERIC_CLASS- 另请参阅:
-
TARGET_TYPE_BOUND_GENERIC_METHOD
public static final byte TARGET_TYPE_BOUND_GENERIC_METHOD- 另请参阅:
-
TARGET_TYPE_FIELD
public static final byte TARGET_TYPE_FIELD- 另请参阅:
-
TARGET_TYPE_RETURN
public static final byte TARGET_TYPE_RETURN- 另请参阅:
-
TARGET_TYPE_RECEIVER
public static final byte TARGET_TYPE_RECEIVER- 另请参阅:
-
TARGET_TYPE_PARAMETER
public static final byte TARGET_TYPE_PARAMETER- 另请参阅:
-
TARGET_TYPE_THROWS
public static final byte TARGET_TYPE_THROWS- 另请参阅:
-
TARGET_TYPE_LOCAL_VARIABLE
public static final byte TARGET_TYPE_LOCAL_VARIABLE- 另请参阅:
-
TARGET_TYPE_RESOURCE_VARIABLE
public static final byte TARGET_TYPE_RESOURCE_VARIABLE- 另请参阅:
-
TARGET_TYPE_CATCH
public static final byte TARGET_TYPE_CATCH- 另请参阅:
-
TARGET_TYPE_INSTANCE_OF
public static final byte TARGET_TYPE_INSTANCE_OF- 另请参阅:
-
TARGET_TYPE_NEW
public static final byte TARGET_TYPE_NEW- 另请参阅:
-
TARGET_TYPE_METHOD_REFERENCE_NEW
public static final byte TARGET_TYPE_METHOD_REFERENCE_NEW- 另请参阅:
-
TARGET_TYPE_METHOD_REFERENCE
public static final byte TARGET_TYPE_METHOD_REFERENCE- 另请参阅:
-
TARGET_TYPE_CAST
public static final byte TARGET_TYPE_CAST- 另请参阅:
-
TARGET_TYPE_ARGUMENT_GENERIC_METHODNew
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODNew- 另请参阅:
-
TARGET_TYPE_ARGUMENT_GENERIC_METHOD
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHOD- 另请参阅:
-
TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew- 另请参阅:
-
TARGET_TYPE_ARGUMENT_GENERIC_METHODReference
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODReference- 另请参阅:
-
u1targetType
public byte u1targetType
-
-
构造器详细资料
-
TargetInfo
protected TargetInfo()Creates an uninitialized TargetInfo. -
TargetInfo
protected TargetInfo(byte u1targetType) Creates an initialized TargetInfo.
-
-
方法详细资料
-
getTargetType
public byte getTargetType()Returns the type of the target. -
accept
Accepts the given visitor, in the context of a type annotation on a class. -
accept
public void accept(Clazz clazz, Field field, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation on a field. -
accept
public void accept(Clazz clazz, Method method, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation on a method. -
accept
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor) Accepts the given visitor, in the context of a type annotation code.
-