|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.antlrjavaparser.JavaParser
public class JavaParser
Created with IntelliJ IDEA. User: Mike De Haan Date: 12/27/12 Time: 7:34 PM To change this template use File | Settings | File Templates.
| Method Summary | |
|---|---|
static CompilationUnit |
parse(File file)
Parses the Java code contained in a File and returns
a CompilationUnit that represents it. |
static CompilationUnit |
parse(InputStream in)
Parses the Java code contained in the InputStream and returns
a CompilationUnit that represents it. |
static CompilationUnit |
parse(String javaSource)
Parses a UTF-8 encoded string as java source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CompilationUnit parse(InputStream in)
throws IOException,
ParseException
InputStream and returns
a CompilationUnit that represents it.
in - InputStream containing Java source code
IOException
ParseException
public static CompilationUnit parse(File file)
throws IOException,
ParseException
File and returns
a CompilationUnit that represents it.
file - File containing Java source code
IOException
ParseException
public static CompilationUnit parse(String javaSource)
throws IOException,
ParseException
javaSource -
IOException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||