public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute) { // Create a new exceptions attribute. ExceptionsAttribute newExceptionsAttribute = new ExceptionsAttribute(constantAdder.addConstant(clazz, exceptionsAttribute.u2attributeNameIndex), 0, exceptionsAttribute.u2exceptionIndexTableLength > 0 ? new int[exceptionsAttribute.u2exceptionIndexTableLength] : EMPTY_INTS); // Add the exceptions. exceptionsAttribute.exceptionEntriesAccept((ProgramClass)clazz, new ExceptionAdder(targetClass, newExceptionsAttribute)); // Add it to the target method. attributesEditor.addAttribute(newExceptionsAttribute); }
public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute) { // Create a new exceptions attribute. ExceptionsAttribute newExceptionsAttribute = new ExceptionsAttribute(constantAdder.addConstant(clazz, exceptionsAttribute.u2attributeNameIndex), 0, exceptionsAttribute.u2exceptionIndexTableLength > 0 ? new int[exceptionsAttribute.u2exceptionIndexTableLength] : EMPTY_INTS); // Add the exceptions. exceptionsAttribute.exceptionEntriesAccept((ProgramClass)clazz, new ExceptionAdder(targetClass, newExceptionsAttribute)); // Add it to the target method. attributesEditor.addAttribute(newExceptionsAttribute); }
public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute) { // Create a new exceptions attribute. ExceptionsAttribute newExceptionsAttribute = new ExceptionsAttribute(constantAdder.addConstant(clazz, exceptionsAttribute.u2attributeNameIndex), 0, exceptionsAttribute.u2exceptionIndexTableLength > 0 ? new int[exceptionsAttribute.u2exceptionIndexTableLength] : EMPTY_INTS); // Add the exceptions. exceptionsAttribute.exceptionEntriesAccept((ProgramClass)clazz, new ExceptionAdder(targetClass, newExceptionsAttribute)); // Add it to the target method. attributesEditor.addAttribute(newExceptionsAttribute); }
public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute) { // Create a new exceptions attribute. ExceptionsAttribute newExceptionsAttribute = new ExceptionsAttribute(constantAdder.addConstant(clazz, exceptionsAttribute.u2attributeNameIndex), 0, exceptionsAttribute.u2exceptionIndexTableLength > 0 ? new int[exceptionsAttribute.u2exceptionIndexTableLength] : EMPTY_INTS); // Add the exceptions. exceptionsAttribute.exceptionEntriesAccept((ProgramClass)clazz, new ExceptionAdder(targetClass, newExceptionsAttribute)); // Add it to the target method. attributesEditor.addAttribute(newExceptionsAttribute); }