com.sun.ebxml.registry.query.sql
Class SQLParser

java.lang.Object
  |
  +--com.sun.ebxml.registry.query.sql.SQLParser
All Implemented Interfaces:
SQLParserConstants

public class SQLParser
extends java.lang.Object
implements SQLParserConstants

Based on grammar by Kevin (mailto:kevinh@empower.com.au) at: http://www.cobase.cs.ucla.edu/pub/javacc/sql-oracle.jj


Field Summary
 java.util.HashMap aliasToTableNameMap
           
 java.lang.String firstTableName
           
 Token jj_nt
           
 boolean lookingAhead
           
 java.lang.String selectColAlias
           
 java.lang.String selectColAndAlias
           
 java.lang.String selectColName
           
 Token token
           
 SQLParserTokenManager token_source
           
 
Fields inherited from interface com.sun.ebxml.registry.query.sql.SQLParserConstants
ALL, AND, ASC, ASTERISK, BETWEEN, BY, CLOSEPAREN, COMMENT_BLOCK, COMMENT_LINE, DEFAULT, DESC, DIGIT, DISTINCT, DOT, EOF, EQUAL, EXISTS, EXPONENT, FLOATING_POINT_LITERAL, FROM, GREATER, GREATEREQUAL, GROUP, HAVING, ID, IN, INTEGER_LITERAL, IS, LESS, LESSEQUAL, LETTER, LIKE, MAX, MIN, MINUS, NOT, NOTEQUAL, NOTEQUAL2, NULL, OPENPAREN, OR, ORDER, PLUS, QUESTIONMARK, SELECT, SEMICOLON, SLASH, SPACES, STRING_LITERAL, SUM, tokenImage, UPPER, WHERE, ZERO, ZEROS
 
Constructor Summary
SQLParser(java.io.InputStream stream)
           
SQLParser(java.io.Reader stream)
           
SQLParser(SQLParserTokenManager tm)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
static void main(java.lang.String[] args)
           
 java.lang.String ProcedureCall()
           
 java.lang.String processQuery(org.oasis.ebxml.registry.bindings.rim.User user, org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption)
          The Registry Query (Subset of SQL-92) grammar starts here
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.Reader stream)
           
 void ReInit(SQLParserTokenManager tm)
           
 java.lang.String SQLAndExpr()
           
 java.lang.String SQLColRef()
           
 java.lang.String SQLCompareExpr()
           
 java.lang.String SQLCompareExprRight()
           
 java.lang.String SQLCompareOp()
           
 java.lang.String SQLFunction()
           
 java.lang.String SQLFunctionArgs()
           
 java.lang.String SQLInClause()
           
 java.lang.String SQLIsClause()
           
 java.lang.String SQLLikeClause()
           
 java.lang.String SQLLiteral()
           
 java.lang.String SQLLvalue()
           
 java.lang.String SQLLValueElement()
           
 java.lang.String SQLLValueList()
           
 java.lang.String SQLLValueListOrProcedureCall()
           
 java.lang.String SQLLvalueTerm()
           
 java.lang.String SQLNotExpr()
           
 java.lang.String SQLOrderBy()
           
 java.lang.String SQLOrderByElem()
           
 java.lang.String SQLOrderByList()
           
 java.lang.String SQLOrderDirection()
           
 java.lang.String SQLOrExpr()
           
 java.lang.String SQLPattern()
           
 java.lang.String SQLProductExpr()
           
 java.lang.String SQLSelect()
           
 java.lang.String SQLSelectCols()
           
 java.lang.String SQLSumExpr()
           
 java.lang.String SQLTableList()
           
 java.lang.String SQLTableRef()
           
 java.lang.String SQLTerm()
           
 java.lang.String SQLUnaryExpr()
           
 java.lang.String SQLWhere()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstTableName

public java.lang.String firstTableName

aliasToTableNameMap

public java.util.HashMap aliasToTableNameMap

selectColName

public java.lang.String selectColName

selectColAlias

public java.lang.String selectColAlias

selectColAndAlias

public java.lang.String selectColAndAlias

token_source

public SQLParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

SQLParser

public SQLParser(java.io.InputStream stream)

SQLParser

public SQLParser(java.io.Reader stream)

SQLParser

public SQLParser(SQLParserTokenManager tm)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws ParseException
ParseException

processQuery

public final java.lang.String processQuery(org.oasis.ebxml.registry.bindings.rim.User user,
                                           org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption)
                                    throws ParseException
The Registry Query (Subset of SQL-92) grammar starts here

ParseException

SQLSelect

public final java.lang.String SQLSelect()
                                 throws ParseException
ParseException

SQLSelectCols

public final java.lang.String SQLSelectCols()
                                     throws ParseException
ParseException

SQLTableList

public final java.lang.String SQLTableList()
                                    throws ParseException
ParseException

SQLTableRef

public final java.lang.String SQLTableRef()
                                   throws ParseException
ParseException

SQLWhere

public final java.lang.String SQLWhere()
                                throws ParseException
ParseException

SQLOrExpr

public final java.lang.String SQLOrExpr()
                                 throws ParseException
ParseException

SQLAndExpr

public final java.lang.String SQLAndExpr()
                                  throws ParseException
ParseException

SQLNotExpr

public final java.lang.String SQLNotExpr()
                                  throws ParseException
ParseException

SQLCompareExpr

public final java.lang.String SQLCompareExpr()
                                      throws ParseException
ParseException

SQLCompareExprRight

public final java.lang.String SQLCompareExprRight()
                                           throws ParseException
ParseException

SQLCompareOp

public final java.lang.String SQLCompareOp()
                                    throws ParseException
ParseException

SQLFunction

public final java.lang.String SQLFunction()
                                   throws ParseException
ParseException

SQLFunctionArgs

public final java.lang.String SQLFunctionArgs()
                                       throws ParseException
ParseException

SQLInClause

public final java.lang.String SQLInClause()
                                   throws ParseException
ParseException

SQLLValueListOrProcedureCall

public final java.lang.String SQLLValueListOrProcedureCall()
                                                    throws ParseException
ParseException

ProcedureCall

public final java.lang.String ProcedureCall()
                                     throws ParseException
ParseException

SQLLValueList

public final java.lang.String SQLLValueList()
                                     throws ParseException
ParseException

SQLLValueElement

public final java.lang.String SQLLValueElement()
                                        throws ParseException
ParseException

SQLIsClause

public final java.lang.String SQLIsClause()
                                   throws ParseException
ParseException

SQLLikeClause

public final java.lang.String SQLLikeClause()
                                     throws ParseException
ParseException

SQLPattern

public final java.lang.String SQLPattern()
                                  throws ParseException
ParseException

SQLColRef

public final java.lang.String SQLColRef()
                                 throws ParseException
ParseException

SQLLvalue

public final java.lang.String SQLLvalue()
                                 throws ParseException
ParseException

SQLLvalueTerm

public final java.lang.String SQLLvalueTerm()
                                     throws ParseException
ParseException

SQLSumExpr

public final java.lang.String SQLSumExpr()
                                  throws ParseException
ParseException

SQLProductExpr

public final java.lang.String SQLProductExpr()
                                      throws ParseException
ParseException

SQLUnaryExpr

public final java.lang.String SQLUnaryExpr()
                                    throws ParseException
ParseException

SQLTerm

public final java.lang.String SQLTerm()
                               throws ParseException
ParseException

SQLLiteral

public final java.lang.String SQLLiteral()
                                  throws ParseException
ParseException

SQLOrderBy

public final java.lang.String SQLOrderBy()
                                  throws ParseException
ParseException

SQLOrderByElem

public final java.lang.String SQLOrderByElem()
                                      throws ParseException
ParseException

SQLOrderByList

public final java.lang.String SQLOrderByList()
                                      throws ParseException
ParseException

SQLOrderDirection

public final java.lang.String SQLOrderDirection()
                                         throws ParseException
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(SQLParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2001-2003 OASIS. All Rights Reserved.