flex.messaging.services.messaging.selector
Class SQLParser

java.lang.Object
  extended by flex.messaging.services.messaging.selector.SQLParser
All Implemented Interfaces:
SQLParserConstants

public class SQLParser
extends Object
implements SQLParserConstants

Subset of SQL-92 used by JMS message selectors.

As a starting point I used the SQL grammar contributed by kevinh@empower.com.au to the JAVACC web site http://www.cobase.cs.ucla.edu/pub/javacc/


Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 SQLParserTokenManager token_source
           
 
Fields inherited from interface flex.messaging.services.messaging.selector.SQLParserConstants
AND, ASTERISK, BETWEEN, BOOLEAN_LITERAL, CLOSEPAREN, DEFAULT, DIGIT, EOF, EQUAL, ESCAPE, EXPONENT, FLOATING_POINT_LITERAL, GREATER, GREATEREQUAL, ID, IN, INTEGER_LITERAL, IS, LESS, LESSEQUAL, LETTER, LIKE, MINUS, NOT, NOTEQUAL, NULL, OPENPAREN, OR, PLUS, QUESTIONMARK, SLASH, STRING_LITERAL, tokenImage
 
Constructor Summary
SQLParser(InputStream stream)
           
SQLParser(JMSSelector selector, InputStream stream)
           
SQLParser(Reader stream)
           
SQLParser(SQLParserTokenManager tm)
           
 
Method Summary
 void disable_tracing()
           
 void enable_tracing()
           
 char EscapeChar()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 boolean match(Message msg)
          The SQL-92 grammar starts here.
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 void ReInit(SQLParserTokenManager tm)
           
 void setMessage(Message msg)
           
 Object SQLAndExpr()
           
 Boolean SQLBetweenClause(Object obj1)
           
 String SQLColRef()
           
 Object SQLCompareExpr()
           
 Boolean SQLCompareExprRight(Object obj1)
           
 Boolean SQLInClause(Object obj1)
           
 Boolean SQLIsClause()
           
 Boolean SQLLikeClause(Object obj1)
           
 Object SQLLiteral()
           
 Object SQLLValueElement()
           
 ArrayList SQLLValueList()
           
 Object SQLNotExpr()
           
 Object SQLOrExpr()
           
 String SQLPattern()
           
 Object SQLProductExpr()
           
 Object SQLSumExpr()
           
 Object SQLTerm()
           
 Object SQLUnaryExpr()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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(JMSSelector selector,
                 InputStream stream)

SQLParser

public SQLParser(InputStream stream)

SQLParser

public SQLParser(Reader stream)

SQLParser

public SQLParser(SQLParserTokenManager tm)
Method Detail

setMessage

public void setMessage(Message msg)

match

public final boolean match(Message msg)
                    throws ParseException
The SQL-92 grammar starts here.

Throws:
ParseException

SQLOrExpr

public final Object SQLOrExpr()
                       throws ParseException
Throws:
ParseException

SQLAndExpr

public final Object SQLAndExpr()
                        throws ParseException
Throws:
ParseException

SQLNotExpr

public final Object SQLNotExpr()
                        throws ParseException
Throws:
ParseException

SQLCompareExpr

public final Object SQLCompareExpr()
                            throws ParseException
Throws:
ParseException

SQLCompareExprRight

public final Boolean SQLCompareExprRight(Object obj1)
                                  throws ParseException
Throws:
ParseException

SQLSumExpr

public final Object SQLSumExpr()
                        throws ParseException
Throws:
ParseException

SQLProductExpr

public final Object SQLProductExpr()
                            throws ParseException
Throws:
ParseException

SQLUnaryExpr

public final Object SQLUnaryExpr()
                          throws ParseException
Throws:
ParseException

SQLColRef

public final String SQLColRef()
                       throws ParseException
Throws:
ParseException

SQLTerm

public final Object SQLTerm()
                     throws ParseException
Throws:
ParseException

SQLLiteral

public final Object SQLLiteral()
                        throws ParseException
Throws:
ParseException

SQLLikeClause

public final Boolean SQLLikeClause(Object obj1)
                            throws ParseException
Throws:
ParseException

SQLPattern

public final String SQLPattern()
                        throws ParseException
Throws:
ParseException

EscapeChar

public final char EscapeChar()
                      throws ParseException
Throws:
ParseException

SQLIsClause

public final Boolean SQLIsClause()
                          throws ParseException
Throws:
ParseException

SQLInClause

public final Boolean SQLInClause(Object obj1)
                          throws ParseException
Throws:
ParseException

SQLLValueList

public final ArrayList SQLLValueList()
                              throws ParseException
Throws:
ParseException

SQLLValueElement

public final Object SQLLValueElement()
                              throws ParseException
Throws:
ParseException

SQLBetweenClause

public final Boolean SQLBetweenClause(Object obj1)
                               throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(SQLParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/services/messaging/selector/SQLParser.html