org.apache.oodt.cas.catalog.query.parser
Class QueryParser

java.lang.Object
  extended by org.apache.oodt.cas.catalog.query.parser.QueryParser
All Implemented Interfaces:
QueryParserConstants, QueryParserTreeConstants

public class QueryParser
extends Object
implements QueryParserTreeConstants, QueryParserConstants


Field Summary
 Token jj_nt
           
protected  JJTQueryParserState jjtree
           
 boolean lookingAhead
           
 Token token
           
 QueryParserTokenManager token_source
           
 
Fields inherited from interface org.apache.oodt.cas.catalog.query.parser.QueryParserTreeConstants
JJTCOMPARISONQUERYEXPRESSION, JJTCUSTOMQUERYEXPRESSION, JJTGETPROPERTIES, JJTGETVALUES, jjtNodeName, JJTPARSEINPUT, JJTPRIORITYQUERYEXPRESSION, JJTQUERY, JJTQUERYEXPRESSION, JJTSTDQUERYEXPRESSION
 
Fields inherited from interface org.apache.oodt.cas.catalog.query.parser.QueryParserConstants
AND, BUCKET_NAME_KEY, CLOSE_BRACES, CLOSE_PARENS, COMMA, CUSTOM_NAME_KEY, DEFAULT, EOF, EQ, EQUALS, GE, GT, LE, LT, NON_TERM, OPEN_BRACES, OPEN_PARENS, OR, P_KEY, QUOTE, SEMI_COLON, SPACE, SPECIAL_CHARS, STRING_LITERAL, TERM, tokenImage, VALUE
 
Constructor Summary
QueryParser(InputStream stream)
           
QueryParser(InputStream stream, String encoding)
           
QueryParser(QueryParserTokenManager tm)
           
QueryParser(Reader stream)
           
 
Method Summary
 QueryExpression ComparisonQueryExpression(Vector<String> bucketNames)
           
 QueryExpression CustomQueryExpression(Vector<String> bucketNames)
           
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 void getProperties(Properties p)
           
 Token getToken(int index)
           
 void getValues(Vector<String> values)
           
static void main(String[] args)
           
 QueryExpression parseInput()
           
static QueryExpression parseQueryExpression(String queryExpressionString)
           
 QueryExpression PriorityQueryExpression(Vector<String> bucketNames)
           
 QueryExpression Query(Vector<String> bucketNames)
           
 QueryExpression QueryExpression(Vector<String> bucketNames)
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(QueryParserTokenManager tm)
           
 void ReInit(Reader stream)
           
 QueryExpression StdQueryExpression()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTQueryParserState jjtree

token_source

public QueryParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

QueryParser

public QueryParser(InputStream stream)

QueryParser

public QueryParser(InputStream stream,
                   String encoding)

QueryParser

public QueryParser(Reader stream)

QueryParser

public QueryParser(QueryParserTokenManager tm)
Method Detail

parseQueryExpression

public static QueryExpression parseQueryExpression(String queryExpressionString)
                                            throws ParseException,
                                                   TokenMgrError
Throws:
ParseException
TokenMgrError

main

public static void main(String[] args)
                 throws ParseException,
                        TokenMgrError
Throws:
ParseException
TokenMgrError

parseInput

public final QueryExpression parseInput()
                                 throws ParseException
Throws:
ParseException

Query

public final QueryExpression Query(Vector<String> bucketNames)
                            throws ParseException
Throws:
ParseException

QueryExpression

public final QueryExpression QueryExpression(Vector<String> bucketNames)
                                      throws ParseException
Throws:
ParseException

StdQueryExpression

public final QueryExpression StdQueryExpression()
                                         throws ParseException
Throws:
ParseException

ComparisonQueryExpression

public final QueryExpression ComparisonQueryExpression(Vector<String> bucketNames)
                                                throws ParseException
Throws:
ParseException

PriorityQueryExpression

public final QueryExpression PriorityQueryExpression(Vector<String> bucketNames)
                                              throws ParseException
Throws:
ParseException

CustomQueryExpression

public final QueryExpression CustomQueryExpression(Vector<String> bucketNames)
                                            throws ParseException
Throws:
ParseException

getValues

public final void getValues(Vector<String> values)
                     throws ParseException
Throws:
ParseException

getProperties

public final void getProperties(Properties p)
                         throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(InputStream stream,
                   String encoding)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(QueryParserTokenManager 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 © 1999-2013
Apache OODT. All Rights Reserved.