com.codestreet.selector.parser
Class SelectorParser
java.lang.Object
com.codestreet.selector.parser.SelectorParser
- All Implemented Interfaces:
- SelectorParserConstants
- public class SelectorParser
- extends java.lang.Object
- implements SelectorParserConstants
Fields inherited from interface com.codestreet.selector.parser.SelectorParserConstants |
DEFAULT, EOF, TK_AND, TK_BETWEEN, TK_COMMA, TK_DIGIT, TK_DIV, TK_DOUBLE, TK_EQ, TK_ESCAPE, TK_EXPONENT, TK_FALSE, TK_FLOAT, TK_GE, TK_GT, TK_IDENTIFIER, TK_IN, TK_IS, TK_LE, TK_LETTER, TK_LIKE, TK_LONG, TK_LPAREN, TK_LT, TK_MINUS, TK_MULT, TK_NE, TK_NOT, TK_NULL, TK_OR, TK_PLUS, TK_RPAREN, TK_SEMICOLON, TK_STRING, TK_TRUE, tokenImage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public SelectorParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
SelectorParser
public SelectorParser(java.io.InputStream stream)
SelectorParser
public SelectorParser(java.io.Reader stream)
SelectorParser
public SelectorParser(SelectorParserTokenManager tm)
doParse
public static SelectorParser.SelectorParseState doParse(java.lang.String selector,
boolean trace)
throws InvalidSelectorException
- Parse the specified selector.
- Parameters:
selector
- Selector.trace
- Flag to enable/disable tracing.
- Returns:
- Returns the parse state. The parse state consists of the root
of the parse tree and the identifiers encountered during the parse.
- Throws:
InvalidSelectorException
expression
public final IExpression expression()
throws ParseException
- Start of the grammar
- Throws:
ParseException
logicExpression
public final IExpression logicExpression()
throws ParseException
- Throws:
ParseException
notExpression
public final IExpression notExpression()
throws ParseException
- Throws:
ParseException
relationalExpression
public final IExpression relationalExpression()
throws ParseException
- Throws:
ParseException
orEqualExpression
public final IExpression orEqualExpression()
throws ParseException
- Throws:
ParseException
equalExpression
public final IExpression equalExpression()
throws ParseException
- Throws:
ParseException
additiveExpression
public final IExpression additiveExpression()
throws ParseException
- Throws:
ParseException
multiplicativeExpression
public final IExpression multiplicativeExpression()
throws ParseException
- Throws:
ParseException
unaryExpression
public final IExpression unaryExpression()
throws ParseException
- Throws:
ParseException
unaryExpressionNotPlusMinus
public final IExpression unaryExpressionNotPlusMinus()
throws ParseException
- Throws:
ParseException
nullExp
public final IExpression nullExp(IExpression exp1)
throws ParseException
- Throws:
ParseException
likeExp
public final IExpression likeExp(IExpression exp1)
throws ParseException
- Throws:
ParseException
stringList
public final void stringList(java.util.Set set)
throws ParseException
- Throws:
ParseException
stringToken
public final void stringToken(java.util.Set set)
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(SelectorParserTokenManager 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-2006 CodeStreet. All Rights Reserved.