@Override public void visit(TryCatchStatement statement) { super.visit(statement); if (statement.getExceptionVariable() != null) { if (variables[statement.getExceptionVariable()] < 0) { statement.setExceptionVariable(null); } else { statement.setExceptionVariable(renumber(statement.getExceptionVariable())); } } } }
TryCatchStatement tryCatchStmt = new TryCatchStatement(); tryCatchStmt.setExceptionType(bookmark.exceptionType); tryCatchStmt.setExceptionVariable(bookmark.exceptionVariable); tryCatchStmt.getHandler().add(generator.generateJumpStatement( program.basicBlockAt(bookmark.exceptionHandler))); tryCatchStmt.setExceptionVariable(bookmark.exceptionVariable); Statement jumpToHandler = generator.generateJumpStatement(program.basicBlockAt(bookmark.exceptionHandler)); if (jumpToHandler != null) {
TryCatchStatement tryCatchStmt = new TryCatchStatement(); tryCatchStmt.setExceptionType(bookmark.exceptionType); tryCatchStmt.setExceptionVariable(bookmark.exceptionVariable); tryCatchStmt.getHandler().add(generator.generateJumpStatement( program.basicBlockAt(bookmark.exceptionHandler)));
stmt.setExceptionVariable(exceptionVarIndex);
@Override public void visit(TryCatchStatement statement) { super.visit(statement); if (statement.getExceptionVariable() != null) { if (variables[statement.getExceptionVariable()] < 0) { statement.setExceptionVariable(null); } else { statement.setExceptionVariable(renumber(statement.getExceptionVariable())); } } } }
TryCatchStatement tryCatchStmt = new TryCatchStatement(); tryCatchStmt.setExceptionType(bookmark.exceptionType); tryCatchStmt.setExceptionVariable(bookmark.exceptionVariable); tryCatchStmt.getHandler().add(generator.generateJumpStatement( program.basicBlockAt(bookmark.exceptionHandler))); tryCatchStmt.setExceptionVariable(bookmark.exceptionVariable); if (node != bookmark.exceptionHandler) { tryCatchStmt.getHandler().add(generator.generateJumpStatement(
TryCatchStatement tryCatchStmt = new TryCatchStatement(); tryCatchStmt.setExceptionType(bookmark.exceptionType); tryCatchStmt.setExceptionVariable(bookmark.exceptionVariable); tryCatchStmt.getHandler().add(generator.generateJumpStatement( program.basicBlockAt(bookmark.exceptionHandler)));
stmt.setExceptionVariable(exceptionVarIndex);