private void visitCatchFinally(Map<Variable, VariableState> initialVarState, List<Map<Variable, VariableState>> afterTryCatchStates, CatchStatement catchStatement, Statement finallyStatement) { pushState(); // getState().clear(); getState().putAll(initialVarState); Statement code = catchStatement.getCode(); catchStatement.visit(this); visitPossiblyEmptyStatement(finallyStatement); if (code == null || !returningBlock(code)) { afterTryCatchStates.add(new HashMap<Variable, VariableState>(getState())); } popState(); }
public void visitTryCatchFinally(TryCatchStatement statement) { statement.getTryStatement().visit(this); for (CatchStatement catchStatement : statement.getCatchStatements()) { catchStatement.visit(this); } Statement finallyStatement = statement.getFinallyStatement(); if (finallyStatement instanceof EmptyStatement) { // dispatching to EmptyStatement will not call back visitor, // must call our visitEmptyStatement explicitly visitEmptyStatement((EmptyStatement) finallyStatement); } else { finallyStatement.visit(this); } }
public void visitTryCatchFinally(final TryCatchStatement statement) { assertStatementAuthorized(statement); statement.getTryStatement().visit(this); for (CatchStatement catchStatement : statement.getCatchStatements()) { catchStatement.visit(this); } Statement finallyStatement = statement.getFinallyStatement(); if (finallyStatement instanceof EmptyStatement) { // dispatching to EmptyStatement will not call back visitor, // must call our visitEmptyStatement explicitly visitEmptyStatement((EmptyStatement) finallyStatement); } else { finallyStatement.visit(this); } }
compileStack.defineVariable(exceptionVariable, true); catchStatement.visit(controller.getAcg());
public void visitTryCatchFinally(TryCatchStatement statement) { statement.getTryStatement().visit(this); List list = statement.getCatchStatements(); for (Iterator iter = list.iterator(); iter.hasNext(); ) { CatchStatement catchStatement = (CatchStatement) iter.next(); catchStatement.visit(this); } statement.getFinallyStatement().visit(this); }
public void visitTryCatchFinally(TryCatchStatement statement) { statement.getTryStatement().visit(this); List list = statement.getCatchStatements(); for (Iterator iter = list.iterator(); iter.hasNext(); ) { CatchStatement catchStatement = (CatchStatement) iter.next(); catchStatement.visit(this); } statement.getFinallyStatement().visit(this); }
public void visitTryCatchFinally(TryCatchStatement statement) { statement.getTryStatement().visit(this); List list = statement.getCatchStatements(); for (Iterator iter = list.iterator(); iter.hasNext(); ) { CatchStatement catchStatement = (CatchStatement) iter.next(); catchStatement.visit(this); } statement.getFinallyStatement().visit(this); }
compileStack.defineVariable(catchStatement.getVariable(), true); catchStatement.visit(this); compileStack.pop();
compileStack.defineVariable(catchStatement.getVariable(), true); catchStatement.visit(this); compileStack.pop();
public void visitTryCatchFinally(TryCatchStatement statement) { statement.getTryStatement().visit(this); for (CatchStatement catchStatement : statement.getCatchStatements()) { catchStatement.visit(this); } Statement finallyStatement = statement.getFinallyStatement(); if (finallyStatement instanceof EmptyStatement) { // dispatching to EmptyStatement will not call back visitor, // must call our visitEmptyStatement explicitly visitEmptyStatement((EmptyStatement) finallyStatement); } else { finallyStatement.visit(this); } }
public void visitTryCatchFinally(final TryCatchStatement statement) { assertStatementAuthorized(statement); statement.getTryStatement().visit(this); for (CatchStatement catchStatement : statement.getCatchStatements()) { catchStatement.visit(this); } Statement finallyStatement = statement.getFinallyStatement(); if (finallyStatement instanceof EmptyStatement) { // dispatching to EmptyStatement will not call back visitor, // must call our visitEmptyStatement explicitly visitEmptyStatement((EmptyStatement) finallyStatement); } else { finallyStatement.visit(this); } }
compileStack.defineVariable(catchStatement.getVariable(), true); catchStatement.visit(this); compileStack.pop();
compileStack.defineVariable(exceptionVariable, true); catchStatement.visit(controller.getAcg());