private void print(TryStatement node) throws IOException { writer.append("try "); print(node.getTryBlock()); for (CatchClause cc : node.getCatchClauses()) { writer.ws().append("catch").ws().append('('); print(cc.getVarName()); if (cc.getCatchCondition() != null) { writer.append(" if "); print(cc.getCatchCondition()); } writer.append(')'); print(cc.getBody()); } if (node.getFinallyBlock() != null) { writer.ws().append("finally "); print(node.getFinallyBlock()); } }
@Override public CAstNode visitCatchClause(CatchClause node, WalkContext arg) { return visit(node.getBody(), arg); }
CatchClause clause = catches.get(i); if (clause.getCatchCondition() != null) { code = Ast.makeNode(CAstNode.IF_STMT, visit(clause.getCatchCondition(), arg), visit(clause.getBody(), arg), code); } else { code = visit(clause, arg);
private void print(TryStatement node) throws IOException { writer.append("try "); print(node.getTryBlock()); for (CatchClause cc : node.getCatchClauses()) { writer.ws().append("catch").ws().append('('); print(cc.getVarName()); if (cc.getCatchCondition() != null) { writer.append(" if "); print(cc.getCatchCondition()); } writer.append(')'); print(cc.getBody()); } if (node.getFinallyBlock() != null) { writer.ws().append("finally "); print(node.getFinallyBlock()); } }
addCodeBlock(clause.getBody(), set, entered, catchBlock, offset);
decompiler.addEOL(Token.LC); Node body = transform(cc.getBody()); decompiler.addEOL(Token.RC);
decompiler.addEOL(Token.LC); Node body = transform(cc.getBody()); decompiler.addEOL(Token.RC);
decompiler.addEOL(Token.LC); Node body = transform(cc.getBody()); decompiler.addEOL(Token.RC);
decompiler.addEOL(Token.LC); Node body = transform(cc.getBody()); decompiler.addEOL(Token.RC);