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