|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjapa.parser.Parser
public final class Parser
This class was generated automatically by javacc, do not edit.
Parse Java 1.5 source code and creates Abstract Syntax Tree classes.
Note: To use this parser asynchronously, disable de parser cache
by calling the method setCacheParser with false
as argument.
| Method Summary | |
|---|---|
static CompilationUnit |
parse(java.io.File file)
Parses the Java code contained in a File and returns
a CompilationUnit that represents it. |
static CompilationUnit |
parse(java.io.File file,
java.lang.String encoding)
Parses the Java code contained in a File and returns
a CompilationUnit that represents it. |
static CompilationUnit |
parse(java.io.InputStream in)
Parses the Java code contained in the InputStream and returns
a CompilationUnit that represents it. |
static CompilationUnit |
parse(java.io.InputStream in,
java.lang.String encoding)
Parses the Java code contained in the InputStream and returns
a CompilationUnit that represents it. |
static void |
setCacheParser(boolean value)
Changes the way that the parser acts when starts to parse. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setCacheParser(boolean value)
false.
By default, the cache is enabled.
value - false to disable the parser instance cache.
public static CompilationUnit parse(java.io.InputStream in,
java.lang.String encoding)
throws japa.parser.ParseException
InputStream and returns
a CompilationUnit that represents it.
in - InputStream containing Java source codeencoding - encoding of the source code
ParseException - if the source code has parser errors
public static CompilationUnit parse(java.io.InputStream in)
throws japa.parser.ParseException
InputStream and returns
a CompilationUnit that represents it.
in - InputStream containing Java source code
ParseException - if the source code has parser errors
public static CompilationUnit parse(java.io.File file,
java.lang.String encoding)
throws japa.parser.ParseException,
java.io.IOException
File and returns
a CompilationUnit that represents it.
file - File containing Java source codeencoding - encoding of the source code
ParseException - if the source code has parser errors
java.io.IOException
public static CompilationUnit parse(java.io.File file)
throws japa.parser.ParseException,
java.io.IOException
File and returns
a CompilationUnit that represents it.
file - File containing Java source code
ParseException - if the source code has parser errors
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||