if (!leftTryCatch.getFinallyBlock().isNull()) { edge.AddJumpOutOfTryFinally(leftTryCatch);
@Override public ControlFlowNode visitTryCatchStatement(final TryCatchStatement node, final ControlFlowNode data) { final boolean hasFinally = !node.getFinallyBlock().isNull(); final ControlFlowNode end = createEndNode(node, false); ControlFlowEdge edge = connect(handleEmbeddedStatement(node.getTryBlock(), data), end); if (hasFinally) { edge.AddJumpOutOfTryFinally(node); } for (final CatchClause cc : node.getCatchClauses()) { edge = connect(handleEmbeddedStatement(cc.getBody(), data), end); if (hasFinally) { edge.AddJumpOutOfTryFinally(node); } } if (hasFinally) { handleEmbeddedStatement(node.getFinallyBlock(), data); } nodes.add(end); return end; }
@Override public ControlFlowNode visitTryCatchStatement(final TryCatchStatement node, final ControlFlowNode data) { final boolean hasFinally = !node.getFinallyBlock().isNull(); final ControlFlowNode end = createEndNode(node, false); ControlFlowEdge edge = connect(handleEmbeddedStatement(node.getTryBlock(), data), end); if (hasFinally) { edge.AddJumpOutOfTryFinally(node); } for (final CatchClause cc : node.getCatchClauses()) { edge = connect(handleEmbeddedStatement(cc.getBody(), data), end); if (hasFinally) { edge.AddJumpOutOfTryFinally(node); } } if (hasFinally) { handleEmbeddedStatement(node.getFinallyBlock(), data); } nodes.add(end); return end; }
@Override public ControlFlowNode visitTryCatchStatement(final TryCatchStatement node, final ControlFlowNode data) { final boolean hasFinally = !node.getFinallyBlock().isNull(); final ControlFlowNode end = createEndNode(node, false); ControlFlowEdge edge = connect(handleEmbeddedStatement(node.getTryBlock(), data), end); if (hasFinally) { edge.AddJumpOutOfTryFinally(node); } for (final CatchClause cc : node.getCatchClauses()) { edge = connect(handleEmbeddedStatement(cc.getBody(), data), end); if (hasFinally) { edge.AddJumpOutOfTryFinally(node); } } if (hasFinally) { handleEmbeddedStatement(node.getFinallyBlock(), data); } nodes.add(end); return end; }
if (!leftTryCatch.getFinallyBlock().isNull()) { edge.AddJumpOutOfTryFinally(leftTryCatch);
if (!leftTryCatch.getFinallyBlock().isNull()) { edge.AddJumpOutOfTryFinally(leftTryCatch);
current.getFinallyBlock().isNull()) {
current.getFinallyBlock().isNull()) {
current.getFinallyBlock().isNull()) {
void writeMethodBody(final AstNodeCollection<TypeDeclaration> declaredTypes, final BlockStatement body) { if (body.isNull()) { semicolon(); return;
void writeMethodBody(final AstNodeCollection<TypeDeclaration> declaredTypes, final BlockStatement body) { if (body.isNull()) { semicolon(); return;
void writeMethodBody(final AstNodeCollection<TypeDeclaration> declaredTypes, final BlockStatement body) { if (body.isNull()) { semicolon(); return;
if (!node.getFinallyBlock().isNull()) { writeKeyword(TryCatchStatement.FINALLY_KEYWORD_ROLE); node.getFinallyBlock().acceptVisitor(this, ignored);
if (!node.getFinallyBlock().isNull()) { writeKeyword(TryCatchStatement.FINALLY_KEYWORD_ROLE); node.getFinallyBlock().acceptVisitor(this, ignored);
if (!node.getFinallyBlock().isNull()) { writeKeyword(TryCatchStatement.FINALLY_KEYWORD_ROLE); node.getFinallyBlock().acceptVisitor(this, ignored);