/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Add a class constant to the constant pool. constantAdder.visitClassConstant(clazz, classConstant); // Add the index of the class constant to the list of exceptions. exceptionsAttributeEditor.addException(constantAdder.getConstantIndex()); } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Add a class constant to the constant pool. constantAdder.visitClassConstant(clazz, classConstant); // Add the index of the class constant to the list of exceptions. exceptionsAttributeEditor.addException(constantAdder.getConstantIndex()); } }
/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Add a class constant to the constant pool. constantAdder.visitClassConstant(clazz, classConstant); // Add the index of the class constant to the list of exceptions. exceptionsAttributeEditor.addException(constantAdder.getConstantIndex()); } }
/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Add a class constant to the constant pool. constantAdder.visitClassConstant(clazz, classConstant); // Add the index of the class constant to the list of exceptions. exceptionsAttributeEditor.addException(constantAdder.getConstantIndex()); } }
/** * Creates a new ExceptionAdder that will copy classes into the given * target exceptions attribute. */ public ExceptionAdder(ProgramClass targetClass, ExceptionsAttribute targetExceptionsAttribute) { constantAdder = new ConstantAdder(targetClass); exceptionsAttributeEditor = new ExceptionsAttributeEditor(targetExceptionsAttribute); }