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()); } }
String catchVarName = catches.get(0).getVarName().getString(); CAstNode var = Ast.makeConstant(catchVarName);
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()); } }
clause.getAbsolutePosition()); catchBlock.setEndOffset(offset); AstNode target = clause.getVarName();
decompiler.addToken(Token.LP); String varName = cc.getVarName().getIdentifier(); decompiler.addName(varName);
decompiler.addToken(Token.LP); String varName = cc.getVarName().getIdentifier(); decompiler.addName(varName);
decompiler.addToken(Token.LP); String varName = cc.getVarName().getIdentifier(); decompiler.addName(varName);
decompiler.addToken(Token.LP); String varName = cc.getVarName().getIdentifier(); decompiler.addName(varName);