public class JavaASTParser extends Object
| Constructor and Description |
|---|
JavaASTParser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
parse(String str)
Parses the contents of a java file and returns its AST as an XML string.
|
protected static String |
visitTree(org.eclipse.jdt.core.dom.ASTNode root)
Visits an AST and exports it as an XML string.
|
protected static String visitTree(org.eclipse.jdt.core.dom.ASTNode root)
root - the root ASTNode of the tree.Copyright © 2016. All rights reserved.