@Test public void testLocalVariableDeclaration() throws IOException { Optional<ASTLocalVariableDeclaration> result = parser.parse_StringLocalVariableDeclaration("private Integer foo = a"); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); ASTLocalVariableDeclaration ast = result.get(); String output = prettyPrinter.prettyprint(ast); result = parser.parse_StringLocalVariableDeclaration(output); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); assertTrue(ast.deepEquals(result.get())); }
public String prettyprint(ASTMCCommonStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); }
MCCommonStatementsPrettyPrinter implements
        MCCommonStatementsVisitor { public String prettyprint(ASTMCCommonStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } }
MCCommonStatementsPrettyPrinter implements
        MCCommonStatementsVisitor { public String prettyprint(ASTMCCommonStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } MCCommonStatementsPrettyPrinter(IndentPrinter out); }
MCCommonStatementsPrettyPrinter implements
        MCCommonStatementsVisitor { public String prettyprint(ASTMCCommonStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } MCCommonStatementsPrettyPrinter(IndentPrinter out); IndentPrinter getPrinter(); @Override void handle(ASTMCJavaBlock a); @Override void handle(ASTIfStatement a); @Override void handle(ASTForStatement a); @Override void handle(ASTWhileStatement a); @Override void handle(ASTDoWhileStatement a); @Override void handle(ASTCommonForControl a); @Override void handle(ASTForInitByExpressions a); @Override void handle(ASTEnhancedForControl a); @Override void handle(ASTJavaModifier a); @Override void handle(ASTFormalParameter a); @Override void handle(ASTEmptyStatement a); @Override void handle(ASTExpressionStatement a); @Override void handle(ASTSwitchStatement a); @Override void handle(ASTConstantExpressionSwitchLabel a); @Override void handle(ASTEnumConstantSwitchLabel a); @Override void handle(ASTDefaultSwitchLabel a); @Override void handle(ASTBreakStatement a); String prettyprint(ASTMCCommonStatementsNode a); @Override void setRealThis(MCCommonStatementsVisitor realThis); @Override MCCommonStatementsVisitor getRealThis(); }
MCCommonStatementsPrettyPrinter implements
        MCCommonStatementsVisitor { public String prettyprint(ASTMCCommonStatementsNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } MCCommonStatementsPrettyPrinter(IndentPrinter out); IndentPrinter getPrinter(); @Override void handle(ASTMCJavaBlock a); @Override void handle(ASTIfStatement a); @Override void handle(ASTForStatement a); @Override void handle(ASTWhileStatement a); @Override void handle(ASTDoWhileStatement a); @Override void handle(ASTCommonForControl a); @Override void handle(ASTForInitByExpressions a); @Override void handle(ASTEnhancedForControl a); @Override void handle(ASTJavaModifier a); @Override void handle(ASTFormalParameter a); @Override void handle(ASTEmptyStatement a); @Override void handle(ASTExpressionStatement a); @Override void handle(ASTSwitchStatement a); @Override void handle(ASTConstantExpressionSwitchLabel a); @Override void handle(ASTEnumConstantSwitchLabel a); @Override void handle(ASTDefaultSwitchLabel a); @Override void handle(ASTBreakStatement a); String prettyprint(ASTMCCommonStatementsNode a); @Override void setRealThis(MCCommonStatementsVisitor realThis); @Override MCCommonStatementsVisitor getRealThis();  }