jrun.jms.core.selector
Class SQLParser
java.lang.Object
|
+--jrun.jms.core.selector.SQLParser
- All Implemented Interfaces:
- SQLParserConstants
- public class SQLParser
- extends java.lang.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 jrun.jms.core.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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,
java.io.InputStream stream)
SQLParser
public SQLParser(java.io.InputStream stream)
SQLParser
public SQLParser(java.io.Reader stream)
SQLParser
public SQLParser(SQLParserTokenManager tm)
setMessage
public void setMessage(javax.jms.Message msg)
getJMSDeliveryModeAsString
public java.lang.String getJMSDeliveryModeAsString(javax.jms.Message msg)
throws javax.jms.JMSException
match
public final boolean match(javax.jms.Message msg)
throws ParseException,
javax.jms.JMSException
- The SQL-92 grammar starts here
SQLOrExpr
public final java.lang.Object SQLOrExpr()
throws ParseException
SQLAndExpr
public final java.lang.Object SQLAndExpr()
throws ParseException
SQLNotExpr
public final java.lang.Object SQLNotExpr()
throws ParseException
SQLCompareExpr
public final java.lang.Object SQLCompareExpr()
throws ParseException
SQLCompareExprRight
public final java.lang.Boolean SQLCompareExprRight(java.lang.Object obj1)
throws ParseException
SQLSumExpr
public final java.lang.Object SQLSumExpr()
throws ParseException
SQLProductExpr
public final java.lang.Object SQLProductExpr()
throws ParseException
SQLUnaryExpr
public final java.lang.Object SQLUnaryExpr()
throws ParseException
SQLColRef
public final java.lang.String SQLColRef()
throws ParseException
SQLTerm
public final java.lang.Object SQLTerm()
throws ParseException
SQLLiteral
public final java.lang.Object SQLLiteral()
throws ParseException
SQLLikeClause
public final java.lang.Boolean SQLLikeClause(java.lang.Object obj1)
throws ParseException
SQLPattern
public final java.lang.String SQLPattern()
throws ParseException
EscapeChar
public final char EscapeChar()
throws ParseException
SQLIsClause
public final java.lang.Boolean SQLIsClause()
throws ParseException
SQLInClause
public final java.lang.Boolean SQLInClause(java.lang.Object obj1)
throws ParseException
SQLLValueList
public final java.util.ArrayList SQLLValueList()
throws ParseException
SQLLValueElement
public final java.lang.Object SQLLValueElement()
throws ParseException
SQLBetweenClause
public final java.lang.Boolean SQLBetweenClause(java.lang.Object obj1)
throws 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 � 2002 Macromedia Corporation. All Rights Reserved.