public final class JavaParser extends Object
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(boolean) with false
 as argument.
| Modifier and Type | Method and Description | 
|---|---|
| static IndexUnit | parse(File file)Parses the Java code contained in a  Fileand returns 
 aCompilationUnitthat represents it. | 
| static IndexUnit | parse(File file,
     String encoding)Parses the Java code contained in a  Fileand returns 
 aCompilationUnitthat represents it. | 
| static IndexUnit | parse(InputStream in)Parses the Java code contained in the  InputStreamand returns 
 aCompilationUnitthat represents it. | 
| static IndexUnit | parse(InputStream in,
     String encoding)Parses the Java code contained in the  InputStreamand returns 
 aCompilationUnitthat represents it. | 
| static void | setCacheParser(boolean value)Changes the way that the parser acts when starts to parse. | 
public static void setCacheParser(boolean value)
false.
 By default, the cache is enabled.value - false to disable the parser instance cache.public static IndexUnit parse(InputStream in, String encoding) throws ParseException
InputStream and returns 
 a CompilationUnit that represents it.in - InputStream containing Java source codeencoding - encoding of the source codeParseException - if the source code has parser errorspublic static IndexUnit parse(InputStream in) throws ParseException
InputStream and returns 
 a CompilationUnit that represents it.in - InputStream containing Java source codeParseException - if the source code has parser errorspublic static IndexUnit parse(File file, String encoding) throws ParseException, IOException
File and returns 
 a CompilationUnit that represents it.file - File containing Java source codeencoding - encoding of the source codeParseException - if the source code has parser errorsIOExceptionpublic static IndexUnit parse(File file) throws ParseException, IOException
File and returns 
 a CompilationUnit that represents it.file - File containing Java source codeParseException - if the source code has parser errorsIOException