org.jcoderz.phoenix.sqlparser
Class SqlParser
java.lang.Object
org.jcoderz.phoenix.sqlparser.SqlParser
public class SqlParser
- extends Object
- Author:
- Albrecht Messner
|
Method Summary |
static void |
main(String[] args)
Main method is just to test parser. |
List |
parse()
Read tokens from the scanner until EOF and parse them. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlParser
public SqlParser(ScannerInterface scanner)
- Create a new SQL Parser.
- Parameters:
scanner - the SQL Scanner that delivers tokens to this parser
parse
public final List parse()
throws ParseException
- Read tokens from the scanner until EOF and parse them.
- Returns:
- a list of parsed SQL statements
- Throws:
ParseException - if an error occurs
main
public static void main(String[] args)
throws Exception
- Main method is just to test parser.
- Parameters:
args - command line arguments
- Throws:
Exception - if something goes wrong
Copyright 2007 The jCoderZ Project.