koala.dynamicjava.parser.wrapper
Class JavaCCParser
java.lang.Object
koala.dynamicjava.parser.wrapper.JavaCCParser
- All Implemented Interfaces:
- SourceCodeParser
public class JavaCCParser
- extends Object
- implements SourceCodeParser
The instances of this class represents a parser
generated with JavaCC.
- Version:
- 1.0 - 1999/06/12
- Author:
- Stephane Hillion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaCCParser
public JavaCCParser(InputStream is,
File f,
Options opt)
JavaCCParser
public JavaCCParser(InputStream is,
Options opt)
JavaCCParser
public JavaCCParser(Reader r,
File f,
Options opt)
JavaCCParser
public JavaCCParser(Reader r,
Options opt)
parseStream
public List<Node> parseStream()
- Parses top level statements
- Specified by:
parseStream in interface SourceCodeParser
- Returns:
- a list of nodes
- See Also:
Node
parseCompilationUnit
public CompilationUnit parseCompilationUnit()
- Parses a library file
- Specified by:
parseCompilationUnit in interface SourceCodeParser
- See Also:
Node