Package proguard.classfile.editor
Class TargetInfoCopier
- java.lang.Object
-
- proguard.classfile.editor.TargetInfoCopier
-
- All Implemented Interfaces:
TargetInfoVisitor
public class TargetInfoCopier extends java.lang.Object implements TargetInfoVisitor
ThisTargetInfoVisitor
copies the target info instances that it visits to the given type annotation (each time overwriting any previous target info).
-
-
Constructor Summary
Constructors Constructor Description TargetInfoCopier(ProgramClass targetClass, TypeAnnotation targetTypeAnnotation)
Creates a new TargetInfoCopier that will copy target info instances to the given target type annotation.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.attribute.annotation.target.visitor.TargetInfoVisitor
visitAnyTargetInfo, visitEmptyTargetInfo, visitEmptyTargetInfo, visitTypeParameterBoundTargetInfo, visitTypeParameterBoundTargetInfo, visitTypeParameterBoundTargetInfo, visitTypeParameterTargetInfo
-
-
-
-
Constructor Detail
-
TargetInfoCopier
public TargetInfoCopier(ProgramClass targetClass, TypeAnnotation targetTypeAnnotation)
Creates a new TargetInfoCopier that will copy target info instances to the given target type annotation.
-
-
Method Detail
-
visitTypeParameterTargetInfo
public void visitTypeParameterTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, TypeParameterTargetInfo typeParameterTargetInfo)
- Specified by:
visitTypeParameterTargetInfo
in interfaceTargetInfoVisitor
-
visitSuperTypeTargetInfo
public void visitSuperTypeTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, SuperTypeTargetInfo superTypeTargetInfo)
- Specified by:
visitSuperTypeTargetInfo
in interfaceTargetInfoVisitor
-
visitTypeParameterBoundTargetInfo
public void visitTypeParameterBoundTargetInfo(Clazz clazz, TypeAnnotation typeAnnotation, TypeParameterBoundTargetInfo typeParameterBoundTargetInfo)
- Specified by:
visitTypeParameterBoundTargetInfo
in interfaceTargetInfoVisitor
-
visitEmptyTargetInfo
public void visitEmptyTargetInfo(Clazz clazz, Member member, TypeAnnotation typeAnnotation, EmptyTargetInfo emptyTargetInfo)
- Specified by:
visitEmptyTargetInfo
in interfaceTargetInfoVisitor
-
visitFormalParameterTargetInfo
public void visitFormalParameterTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, FormalParameterTargetInfo formalParameterTargetInfo)
- Specified by:
visitFormalParameterTargetInfo
in interfaceTargetInfoVisitor
-
visitThrowsTargetInfo
public void visitThrowsTargetInfo(Clazz clazz, Method method, TypeAnnotation typeAnnotation, ThrowsTargetInfo throwsTargetInfo)
- Specified by:
visitThrowsTargetInfo
in interfaceTargetInfoVisitor
-
visitLocalVariableTargetInfo
public void visitLocalVariableTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, LocalVariableTargetInfo localVariableTargetInfo)
- Specified by:
visitLocalVariableTargetInfo
in interfaceTargetInfoVisitor
-
visitCatchTargetInfo
public void visitCatchTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, CatchTargetInfo catchTargetInfo)
- Specified by:
visitCatchTargetInfo
in interfaceTargetInfoVisitor
-
visitOffsetTargetInfo
public void visitOffsetTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, OffsetTargetInfo offsetTargetInfo)
- Specified by:
visitOffsetTargetInfo
in interfaceTargetInfoVisitor
-
visitTypeArgumentTargetInfo
public void visitTypeArgumentTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, TypeArgumentTargetInfo typeArgumentTargetInfo)
- Specified by:
visitTypeArgumentTargetInfo
in interfaceTargetInfoVisitor
-
-