public class Parser extends Object
JavaParser to parse classes. If an exception is thrown within JavaParser, this class will output the input String so that everything can
be debugged.| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
static com.github.javaparser.ast.CompilationUnit |
parse(FileInputStream in) |
static com.github.javaparser.ast.CompilationUnit |
parse(String code)
Execute
JavaParser and output the input code if an exception is thrown inside JavaParser so that it becomes debuggable. |
public static com.github.javaparser.ast.CompilationUnit parse(String code)
JavaParser and output the input code if an exception is thrown inside JavaParser so that it becomes debuggable.code - The code to be parsedCompilationUnit result after parsingpublic static com.github.javaparser.ast.CompilationUnit parse(FileInputStream in) throws IOException
IOExceptionCopyright © 2019. All rights reserved.