com.codestreet.selector.parser
Class SelectorParser

java.lang.Object
  extended bycom.codestreet.selector.parser.SelectorParser
All Implemented Interfaces:
SelectorParserConstants

public class SelectorParser
extends java.lang.Object
implements SelectorParserConstants


Nested Class Summary
static class SelectorParser.SelectorParseState
           
 
Field Summary
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 SelectorParserTokenManager token_source
           
 
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
 
Constructor Summary
SelectorParser(java.io.InputStream stream)
           
SelectorParser(java.io.Reader stream)
           
SelectorParser(SelectorParserTokenManager tm)
           
 
Method Summary
 IExpression additiveExpression()
           
 void disable_tracing()
           
static SelectorParser.SelectorParseState doParse(java.lang.String selector, boolean trace)
          Parse the specified selector.
 void enable_tracing()
           
 IExpression equalExpression()
           
 IExpression expression()
          Start of the grammar
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 IExpression likeExp(IExpression exp1)
           
 IExpression logicExpression()
           
 IExpression multiplicativeExpression()
           
 IExpression notExpression()
           
 IExpression nullExp(IExpression exp1)
           
 IExpression orEqualExpression()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(java.io.Reader stream)
           
 void ReInit(SelectorParserTokenManager tm)
           
 IExpression relationalExpression()
           
 void stringList(java.util.Set set)
           
 void stringToken(java.util.Set set)
           
 IExpression unaryExpression()
           
 IExpression unaryExpressionNotPlusMinus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public SelectorParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

SelectorParser

public SelectorParser(java.io.InputStream stream)

SelectorParser

public SelectorParser(java.io.Reader stream)

SelectorParser

public SelectorParser(SelectorParserTokenManager tm)
Method Detail

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.