public final class DetailNodeTreeStringPrinter extends Object
| Modifier and Type | Method and Description |
|---|---|
static DetailNode |
parseJavadocAsDetailNode(DetailAST blockComment)
Parse block comment DetailAST as Javadoc DetailNode tree.
|
static String |
printFileAst(File file)
Parse a file and print the parse tree.
|
static String |
printTree(DetailNode ast,
String rootPrefix,
String prefix)
Print AST.
|
public static String printFileAst(File file) throws IOException
file - the file to print.IOException - if the file could not be read.public static DetailNode parseJavadocAsDetailNode(DetailAST blockComment)
blockComment - DetailASTpublic static String printTree(DetailNode ast, String rootPrefix, String prefix)
ast - the root AST node.rootPrefix - prefix for the root nodeprefix - prefix for other nodesCopyright © 2001–2018. All rights reserved.