org.apache.oodt.cas.catalog.query.parser
Class QueryParser
java.lang.Object
org.apache.oodt.cas.catalog.query.parser.QueryParser
- All Implemented Interfaces:
- QueryParserConstants, QueryParserTreeConstants
public class QueryParser
- extends Object
- implements QueryParserTreeConstants, QueryParserConstants
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jjtree
protected JJTQueryParserState jjtree
token_source
public QueryParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
QueryParser
public QueryParser(InputStream stream)
QueryParser
public QueryParser(InputStream stream,
String encoding)
QueryParser
public QueryParser(Reader stream)
QueryParser
public QueryParser(QueryParserTokenManager tm)
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-2012 Apache OODT. All Rights Reserved.