@Test public void testThrowStatement() throws IOException { Optional<ASTThrowStatement> result = parser.parse_StringThrowStatement("throw Exception;"); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); ASTThrowStatement ast = result.get(); String output = prettyPrinter.prettyprint(ast); result = parser.parse_StringThrowStatement(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();  }