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