Class TargetInfo
- java.lang.Object
-
- proguard.classfile.attribute.annotation.target.TargetInfo
-
- Direct Known Subclasses:
CatchTargetInfo,EmptyTargetInfo,FormalParameterTargetInfo,LocalVariableTargetInfo,OffsetTargetInfo,SuperTypeTargetInfo,ThrowsTargetInfo,TypeArgumentTargetInfo,TypeParameterBoundTargetInfo,TypeParameterTargetInfo
public abstract class TargetInfo extends java.lang.ObjectRepresentation of an annotation target.
-
-
Field Summary
Fields Modifier and Type Field Description static byteTARGET_TYPE_ARGUMENT_GENERIC_METHODstatic byteTARGET_TYPE_ARGUMENT_GENERIC_METHODNewstatic byteTARGET_TYPE_ARGUMENT_GENERIC_METHODReferencestatic byteTARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNewstatic byteTARGET_TYPE_BOUND_GENERIC_CLASSstatic byteTARGET_TYPE_BOUND_GENERIC_METHODstatic byteTARGET_TYPE_CASTstatic byteTARGET_TYPE_CATCHstatic byteTARGET_TYPE_EXTENDSstatic byteTARGET_TYPE_FIELDstatic byteTARGET_TYPE_INSTANCE_OFstatic byteTARGET_TYPE_LOCAL_VARIABLEstatic byteTARGET_TYPE_METHOD_REFERENCEstatic byteTARGET_TYPE_METHOD_REFERENCE_NEWstatic byteTARGET_TYPE_NEWstatic byteTARGET_TYPE_PARAMETERstatic byteTARGET_TYPE_PARAMETER_GENERIC_CLASSstatic byteTARGET_TYPE_PARAMETER_GENERIC_METHODstatic byteTARGET_TYPE_RECEIVERstatic byteTARGET_TYPE_RESOURCE_VARIABLEstatic byteTARGET_TYPE_RETURNstatic byteTARGET_TYPE_THROWSbyteu1targetType
-
Constructor Summary
Constructors Modifier Constructor Description protectedTargetInfo()Creates an uninitialized TargetInfo.protectedTargetInfo(byte u1targetType)Creates an initialized TargetInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.bytegetTargetType()Returns the type of the target.
-
-
-
Field Detail
-
TARGET_TYPE_PARAMETER_GENERIC_CLASS
public static final byte TARGET_TYPE_PARAMETER_GENERIC_CLASS
- See Also:
- Constant Field Values
-
TARGET_TYPE_PARAMETER_GENERIC_METHOD
public static final byte TARGET_TYPE_PARAMETER_GENERIC_METHOD
- See Also:
- Constant Field Values
-
TARGET_TYPE_EXTENDS
public static final byte TARGET_TYPE_EXTENDS
- See Also:
- Constant Field Values
-
TARGET_TYPE_BOUND_GENERIC_CLASS
public static final byte TARGET_TYPE_BOUND_GENERIC_CLASS
- See Also:
- Constant Field Values
-
TARGET_TYPE_BOUND_GENERIC_METHOD
public static final byte TARGET_TYPE_BOUND_GENERIC_METHOD
- See Also:
- Constant Field Values
-
TARGET_TYPE_FIELD
public static final byte TARGET_TYPE_FIELD
- See Also:
- Constant Field Values
-
TARGET_TYPE_RETURN
public static final byte TARGET_TYPE_RETURN
- See Also:
- Constant Field Values
-
TARGET_TYPE_RECEIVER
public static final byte TARGET_TYPE_RECEIVER
- See Also:
- Constant Field Values
-
TARGET_TYPE_PARAMETER
public static final byte TARGET_TYPE_PARAMETER
- See Also:
- Constant Field Values
-
TARGET_TYPE_THROWS
public static final byte TARGET_TYPE_THROWS
- See Also:
- Constant Field Values
-
TARGET_TYPE_LOCAL_VARIABLE
public static final byte TARGET_TYPE_LOCAL_VARIABLE
- See Also:
- Constant Field Values
-
TARGET_TYPE_RESOURCE_VARIABLE
public static final byte TARGET_TYPE_RESOURCE_VARIABLE
- See Also:
- Constant Field Values
-
TARGET_TYPE_CATCH
public static final byte TARGET_TYPE_CATCH
- See Also:
- Constant Field Values
-
TARGET_TYPE_INSTANCE_OF
public static final byte TARGET_TYPE_INSTANCE_OF
- See Also:
- Constant Field Values
-
TARGET_TYPE_NEW
public static final byte TARGET_TYPE_NEW
- See Also:
- Constant Field Values
-
TARGET_TYPE_METHOD_REFERENCE_NEW
public static final byte TARGET_TYPE_METHOD_REFERENCE_NEW
- See Also:
- Constant Field Values
-
TARGET_TYPE_METHOD_REFERENCE
public static final byte TARGET_TYPE_METHOD_REFERENCE
- See Also:
- Constant Field Values
-
TARGET_TYPE_CAST
public static final byte TARGET_TYPE_CAST
- See Also:
- Constant Field Values
-
TARGET_TYPE_ARGUMENT_GENERIC_METHODNew
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODNew
- See Also:
- Constant Field Values
-
TARGET_TYPE_ARGUMENT_GENERIC_METHOD
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHOD
- See Also:
- Constant Field Values
-
TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew
- See Also:
- Constant Field Values
-
TARGET_TYPE_ARGUMENT_GENERIC_METHODReference
public static final byte TARGET_TYPE_ARGUMENT_GENERIC_METHODReference
- See Also:
- Constant Field Values
-
u1targetType
public byte u1targetType
-
-
Method Detail
-
getTargetType
public byte getTargetType()
Returns the type of the target.
-
accept
public void accept(Clazz clazz, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
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.
-
-