Package proguard.classfile.editor
Class ExceptionAdder
- java.lang.Object
-
- proguard.classfile.editor.ExceptionAdder
-
- All Implemented Interfaces:
ConstantVisitor
public class ExceptionAdder extends java.lang.Object implements ConstantVisitor
ThisConstantVisitor
adds all class constants that it visits to the given target exceptions attribute.
-
-
Constructor Summary
Constructors Constructor Description ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute)
Creates a new ExceptionAdder that will copy classes into the given target exceptions attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitClassConstant(Clazz clazz, ClassConstant classConstant)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.constant.visitor.ConstantVisitor
visitAnyConstant, visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
-
-
-
-
Constructor Detail
-
ExceptionAdder
public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute)
Creates a new ExceptionAdder that will copy classes into the given target exceptions attribute.
-
-
Method Detail
-
visitClassConstant
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
- Specified by:
visitClassConstant
in interfaceConstantVisitor
-
-