org.apache.ws.jaxme.js.util
public class JavaParser extends Object
The JavaParser is a utility class, that
reads Java sources and converts them into instances of
JavaSource.
| Constructor Summary | |
|---|---|
| JavaParser(JavaSourceFactory pFactory) Creates a new instance of | |
| Method Summary | |
|---|---|
| JavaSourceFactory | getFactory() Returns the factory. |
| String | getPackageName() Returns the package name. |
| static void | main(String[] args) For tests |
| List | parse(File pFile) Parses the given file. |
| List | parse(Reader pReader) Parses the input read from the given
Reader |
| List | parse(TokenStream pStream) Parses the given TokenStream pStream. |
| void | setPackageName(String pPackageName) Sets the package name. |
Creates a new instance of JavaParser,
that will use the given JavaSourceFactory for
creating instances of JavaSource.
Parses the given file.
Returns: List of classes, that have been read.
Parses the input read from the given
Reader pReader.
Returns: List of classes, that have been read.
pStream.Returns: List of classes, that have been read.