|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gibello.zql.ZqlParser
public class ZqlParser
ZqlParser: an SQL parser
Constructor Summary | |
---|---|
ZqlParser()
Create a new parser: before use, call initParser(InputStream) to specify an input stream for the parsing. |
|
ZqlParser(java.io.InputStream in)
Create a new parser to parse SQL statements from a given input stream. |
Method Summary | |
---|---|
void |
addCustomFunction(java.lang.String fct,
int nparm)
|
void |
initParser(java.io.InputStream in)
Initialize (or re-initialize) the input stream for the parser. |
static void |
main(java.lang.String[] args)
Test program: Parses SQL statements from stdin or from a text file. |
ZExp |
readExpression()
Parse an SQL Expression (like the WHERE clause of an SQL query). |
ZStatement |
readStatement()
Parse an SQL Statement from the parser's input stream. |
java.util.Vector |
readStatements()
Parse a set of SQL Statements from the parser's input stream (all the available statements are parsed and returned). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZqlParser(java.io.InputStream in)
in
- The InputStream from which SQL statements will be read.public ZqlParser()
Method Detail |
---|
public static void main(java.lang.String[] args) throws org.gibello.zql.ParseException
org.gibello.zql.ParseException
public void initParser(java.io.InputStream in)
public void addCustomFunction(java.lang.String fct, int nparm)
public ZStatement readStatement() throws org.gibello.zql.ParseException
org.gibello.zql.ParseException
public java.util.Vector readStatements() throws org.gibello.zql.ParseException
org.gibello.zql.ParseException
public ZExp readExpression() throws org.gibello.zql.ParseException
org.gibello.zql.ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |