public class ASTExtractor extends Object
| Constructor and Description |
|---|
ASTExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static String |
parseFile(String filename)
Parses a java file and returns its AST.
|
static String |
parseFile(String filename,
String astFormat)
Parses a java file and returns its AST.
|
static String |
parseFolder(String folderName)
Parses all the files of a folder and returns a unified AST.
|
static String |
parseFolder(String folderName,
String astFormat)
Parses all the files of a folder and returns a unified AST.
|
static String |
parseString(String fileContents)
Parses the contents of a java file and returns its AST.
|
static String |
parseString(String fileContents,
String astFormat)
Parses the contents of a java file and returns its AST.
|
public static String parseString(String fileContents)
fileContents - the contents of a java file, given as a String.public static String parseString(String fileContents, String astFormat)
fileContents - the contents of a java file, given as a String.astFormat - the format of the returned AST, either "XML" or "JSON".public static String parseFile(String filename)
filename - the filename of the java file to be parsed.public static String parseFile(String filename, String astFormat)
filename - the filename of the java file to be parsed.astFormat - the format of the returned AST, either "XML" or "JSON".public static String parseFolder(String folderName)
folderName - the path of the folder of which the files are parsed.public static String parseFolder(String folderName, String astFormat)
folderName - the path of the folder of which the files are parsed.astFormat - the format of the returned AST, either "XML" or "JSON".Copyright © 2016. All rights reserved.