Package proguard.classfile.editor
Class TargetInfoCopier
java.lang.Object
proguard.classfile.editor.TargetInfoCopier
- All Implemented Interfaces:
TargetInfoVisitor
This
TargetInfoVisitor copies the target info instances that it visits to the given type
annotation (each time overwriting any previous target info).-
Constructor Summary
ConstructorsConstructorDescriptionTargetInfoCopier(ProgramClass targetClass, TypeAnnotation targetTypeAnnotation) Creates a new TargetInfoCopier that will copy target info instances to the given target type annotation. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitCatchTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, CatchTargetInfo catchTargetInfo) voidvisitEmptyTargetInfo(Clazz clazz, Member member, TypeAnnotation typeAnnotation, EmptyTargetInfo emptyTargetInfo) voidvisitFormalParameterTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, FormalParameterTargetInfo formalParameterTargetInfo) voidvisitLocalVariableTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, LocalVariableTargetInfo localVariableTargetInfo) voidvisitOffsetTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, OffsetTargetInfo offsetTargetInfo) voidvisitSuperTypeTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, SuperTypeTargetInfo superTypeTargetInfo) voidvisitThrowsTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, ThrowsTargetInfo throwsTargetInfo) voidvisitTypeArgumentTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TypeArgumentTargetInfo typeArgumentTargetInfo) voidvisitTypeParameterBoundTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, TypeParameterBoundTargetInfo typeParameterBoundTargetInfo) voidvisitTypeParameterTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, TypeParameterTargetInfo typeParameterTargetInfo) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface proguard.classfile.attribute.annotation.target.visitor.TargetInfoVisitor
visitAnyTargetInfo, visitEmptyTargetInfo, visitEmptyTargetInfo, visitTypeParameterBoundTargetInfo, visitTypeParameterBoundTargetInfo, visitTypeParameterBoundTargetInfo, visitTypeParameterTargetInfo
-
Constructor Details
-
TargetInfoCopier
Creates a new TargetInfoCopier that will copy target info instances to the given target type annotation.
-
-
Method Details
-
visitTypeParameterTargetInfo
public void visitTypeParameterTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, TypeParameterTargetInfo typeParameterTargetInfo) - Specified by:
visitTypeParameterTargetInfoin interfaceTargetInfoVisitor
-
visitSuperTypeTargetInfo
public void visitSuperTypeTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, SuperTypeTargetInfo superTypeTargetInfo) - Specified by:
visitSuperTypeTargetInfoin interfaceTargetInfoVisitor
-
visitTypeParameterBoundTargetInfo
public void visitTypeParameterBoundTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, TypeParameterBoundTargetInfo typeParameterBoundTargetInfo) - Specified by:
visitTypeParameterBoundTargetInfoin interfaceTargetInfoVisitor
-
visitEmptyTargetInfo
public void visitEmptyTargetInfo(Clazz clazz, Member member, TypeAnnotation typeAnnotation, EmptyTargetInfo emptyTargetInfo) - Specified by:
visitEmptyTargetInfoin interfaceTargetInfoVisitor
-
visitFormalParameterTargetInfo
public void visitFormalParameterTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, FormalParameterTargetInfo formalParameterTargetInfo) - Specified by:
visitFormalParameterTargetInfoin interfaceTargetInfoVisitor
-
visitThrowsTargetInfo
public void visitThrowsTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, ThrowsTargetInfo throwsTargetInfo) - Specified by:
visitThrowsTargetInfoin interfaceTargetInfoVisitor
-
visitLocalVariableTargetInfo
public void visitLocalVariableTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, LocalVariableTargetInfo localVariableTargetInfo) - Specified by:
visitLocalVariableTargetInfoin interfaceTargetInfoVisitor
-
visitCatchTargetInfo
public void visitCatchTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, CatchTargetInfo catchTargetInfo) - Specified by:
visitCatchTargetInfoin interfaceTargetInfoVisitor
-
visitOffsetTargetInfo
public void visitOffsetTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, OffsetTargetInfo offsetTargetInfo) - Specified by:
visitOffsetTargetInfoin interfaceTargetInfoVisitor
-
visitTypeArgumentTargetInfo
public void visitTypeArgumentTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TypeArgumentTargetInfo typeArgumentTargetInfo) - Specified by:
visitTypeArgumentTargetInfoin interfaceTargetInfoVisitor
-