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
{@link org.apache.ws.jaxme.js.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
{@link Reader} |
List | parse(TokenStream pStream) Parses the given {@link TokenStream} pStream . |
void | setPackageName(String pPackageName) Sets the package name. |
Creates a new instance of JavaParser
,
that will use the given {@link JavaSourceFactory} for
creating instances of {@link JavaSource}.
Parses the given file.
Returns: List of classes, that have been read.
Parses the input read from the given
{@link Reader} pReader
.
Returns: List of classes, that have been read.
pStream
.Returns: List of classes, that have been read.