@Test public void testTryStatement1() throws IOException { Optional<ASTTryStatement1> result = parser.parse_StringTryStatement1(" try { Integer foo = a; } catch (private static a.b.c | d.e.G foo) {Integer foo = a; }"); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); ASTTryStatement1 ast = result.get(); String output = prettyPrinter.prettyprint(ast); result = parser.parse_StringTryStatement1(output); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); assertTrue(ast.deepEquals(result.get())); }
public String prettyprint(ASTMCExceptionStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); }
MCExceptionStatementsPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        MCExceptionStatementsVisitor { public String prettyprint(ASTMCExceptionStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } }
MCExceptionStatementsPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        MCExceptionStatementsVisitor { public String prettyprint(ASTMCExceptionStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } MCExceptionStatementsPrettyPrinter(IndentPrinter out); }
MCExceptionStatementsPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        MCExceptionStatementsVisitor { public String prettyprint(ASTMCExceptionStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } MCExceptionStatementsPrettyPrinter(IndentPrinter out); @Override void handle(ASTTryStatement1 a); @Override void handle(ASTTryStatement2 a); @Override void handle(ASTTryStatement3 a); @Override void handle(ASTTryLocalVariableDeclaration a); @Override void handle(ASTThrowStatement a); @Override void handle(ASTCatchClause a); @Override void handle(ASTCatchTypeList a); String prettyprint(ASTMCExceptionStatementsNode a); @Override void setRealThis(MCExceptionStatementsVisitor realThis); @Override MCExceptionStatementsVisitor getRealThis(); }
MCExceptionStatementsPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        MCExceptionStatementsVisitor { public String prettyprint(ASTMCExceptionStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } MCExceptionStatementsPrettyPrinter(IndentPrinter out); @Override void handle(ASTTryStatement1 a); @Override void handle(ASTTryStatement2 a); @Override void handle(ASTTryStatement3 a); @Override void handle(ASTTryLocalVariableDeclaration a); @Override void handle(ASTThrowStatement a); @Override void handle(ASTCatchClause a); @Override void handle(ASTCatchTypeList a); String prettyprint(ASTMCExceptionStatementsNode a); @Override void setRealThis(MCExceptionStatementsVisitor realThis); @Override MCExceptionStatementsVisitor getRealThis();  }