@Test public void testLastFormalParameter() throws IOException { Optional<ASTLastFormalParameter> result = parser.parse_StringLastFormalParameter("private String ... a"); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); ASTLastFormalParameter ast = result.get(); String output = prettyPrinter.prettyprint(ast); result = parser.parse_StringLastFormalParameter(output); assertFalse(parser.hasErrors()); assertTrue(result.isPresent()); assertTrue(ast.deepEquals(result.get())); }
public String prettyprint(ASTJavaLightNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); }
JavaLightPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        JavaLightVisitor { public String prettyprint(ASTJavaLightNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } }
JavaLightPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        JavaLightVisitor { public String prettyprint(ASTJavaLightNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } JavaLightPrettyPrinter(IndentPrinter out); }
JavaLightPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        JavaLightVisitor { public String prettyprint(ASTJavaLightNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } JavaLightPrettyPrinter(IndentPrinter out); IndentPrinter getPrinter(); @Override void handle(ASTMethodDeclaration a); @Override void handle(ASTInterfaceMethodDeclaration a); @Override void handle(ASTThrows a); @Override void handle(ASTConstructorDeclaration a); @Override void handle(ASTConstDeclaration a); @Override void handle(ASTFormalParameters a); @Override void handle(ASTFormalParameterListing a); @Override void handle(ASTLastFormalParameter a); @Override void handle(ASTAnnotation a); @Override void handle(ASTAnnotationPairArguments a); @Override void handle(ASTElementValuePair a); @Override void handle(ASTElementValueArrayInitializer a); @Override void handle(ASTArrayDimensionByInitializer a); String prettyprint(ASTJavaLightNode a); @Override void setRealThis(JavaLightVisitor realThis); @Override JavaLightVisitor getRealThis(); }
JavaLightPrettyPrinter extends MCCommonStatementsPrettyPrinter implements
        JavaLightVisitor { public String prettyprint(ASTJavaLightNode a) { getPrinter().clearBuffer(); a.accept(getRealThis()); return getPrinter().getContent(); } JavaLightPrettyPrinter(IndentPrinter out); IndentPrinter getPrinter(); @Override void handle(ASTMethodDeclaration a); @Override void handle(ASTInterfaceMethodDeclaration a); @Override void handle(ASTThrows a); @Override void handle(ASTConstructorDeclaration a); @Override void handle(ASTConstDeclaration a); @Override void handle(ASTFormalParameters a); @Override void handle(ASTFormalParameterListing a); @Override void handle(ASTLastFormalParameter a); @Override void handle(ASTAnnotation a); @Override void handle(ASTAnnotationPairArguments a); @Override void handle(ASTElementValuePair a); @Override void handle(ASTElementValueArrayInitializer a); @Override void handle(ASTArrayDimensionByInitializer a); String prettyprint(ASTJavaLightNode a); @Override void setRealThis(JavaLightVisitor realThis); @Override JavaLightVisitor getRealThis();  }