Class TypeParameterTargetInfo
- java.lang.Object
-
- proguard.classfile.attribute.annotation.target.TargetInfo
-
- proguard.classfile.attribute.annotation.target.TypeParameterTargetInfo
-
public class TypeParameterTargetInfo extends TargetInfo
Representation of a type parameter annotation target.
-
-
Field Summary
Fields Modifier and Type Field Description int
u1typeParameterIndex
-
Fields inherited from class proguard.classfile.attribute.annotation.target.TargetInfo
TARGET_TYPE_ARGUMENT_GENERIC_METHOD, TARGET_TYPE_ARGUMENT_GENERIC_METHODNew, TARGET_TYPE_ARGUMENT_GENERIC_METHODReference, TARGET_TYPE_ARGUMENT_GENERIC_METHODReferenceNew, TARGET_TYPE_BOUND_GENERIC_CLASS, TARGET_TYPE_BOUND_GENERIC_METHOD, TARGET_TYPE_CAST, TARGET_TYPE_CATCH, TARGET_TYPE_EXTENDS, TARGET_TYPE_FIELD, TARGET_TYPE_INSTANCE_OF, TARGET_TYPE_LOCAL_VARIABLE, TARGET_TYPE_METHOD_REFERENCE, TARGET_TYPE_METHOD_REFERENCE_NEW, TARGET_TYPE_NEW, TARGET_TYPE_PARAMETER, TARGET_TYPE_PARAMETER_GENERIC_CLASS, TARGET_TYPE_PARAMETER_GENERIC_METHOD, TARGET_TYPE_RECEIVER, TARGET_TYPE_RESOURCE_VARIABLE, TARGET_TYPE_RETURN, TARGET_TYPE_THROWS, u1targetType
-
-
Constructor Summary
Constructors Constructor Description TypeParameterTargetInfo()
Creates an uninitialized TypeParameterTargetInfo.TypeParameterTargetInfo(byte u1targetType)
Creates a partially initialized TypeParameterTargetInfo.TypeParameterTargetInfo(byte u1targetType, int u1typeParameterIndex)
Creates an initialized TypeParameterTargetInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Clazz clazz, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
Accepts the given visitor, in the context of a type annotation on a class.void
accept(Clazz clazz, Method method, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
Accepts the given visitor, in the context of a type annotation on a method.-
Methods inherited from class proguard.classfile.attribute.annotation.target.TargetInfo
accept, accept, getTargetType
-
-
-
-
Constructor Detail
-
TypeParameterTargetInfo
public TypeParameterTargetInfo()
Creates an uninitialized TypeParameterTargetInfo.
-
TypeParameterTargetInfo
public TypeParameterTargetInfo(byte u1targetType)
Creates a partially initialized TypeParameterTargetInfo.
-
TypeParameterTargetInfo
public TypeParameterTargetInfo(byte u1targetType, int u1typeParameterIndex)
Creates an initialized TypeParameterTargetInfo.
-
-
Method Detail
-
accept
public void accept(Clazz clazz, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
Description copied from class:TargetInfo
Accepts the given visitor, in the context of a type annotation on a class.- Overrides:
accept
in classTargetInfo
-
accept
public void accept(Clazz clazz, Method method, TypeAnnotation typeAnnotation, TargetInfoVisitor targetInfoVisitor)
Description copied from class:TargetInfo
Accepts the given visitor, in the context of a type annotation on a method.- Overrides:
accept
in classTargetInfo
-
-