public final class AstTreeStringPrinter extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
printFileAst(File file,
boolean withComments)
Parse a file and print the parse tree.
|
public static String printFileAst(File file, boolean withComments) throws IOException, CheckstyleException
file - the file to print.withComments - true to include comments to ASTIOException - if the file could not be read.CheckstyleException - if the file is not a Java source.Copyright © 2001-2016. All Rights Reserved.