flex.messaging.services.messaging.selector
Class SQLParser
java.lang.Object
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/
| 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 |
token_source
public SQLParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
SQLParser
public SQLParser(JMSSelector selector,
InputStream stream)
SQLParser
public SQLParser(InputStream stream)
SQLParser
public SQLParser(Reader stream)
SQLParser
public SQLParser(SQLParserTokenManager tm)
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