public class QueryParser extends Object implements QueryParserTreeConstants, QueryParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt |
protected JJTQueryParserState |
jjtree |
boolean |
lookingAhead |
Token |
token |
QueryParserTokenManager |
token_source |
JJTCOMPARISONQUERYEXPRESSION, JJTCUSTOMQUERYEXPRESSION, JJTGETPROPERTIES, JJTGETVALUES, jjtNodeName, JJTPARSEINPUT, JJTPRIORITYQUERYEXPRESSION, JJTQUERY, JJTQUERYEXPRESSION, JJTSTDQUERYEXPRESSION
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 and Description |
---|
QueryParser(InputStream stream) |
QueryParser(InputStream stream,
String encoding) |
QueryParser(QueryParserTokenManager tm) |
QueryParser(Reader stream) |
Modifier and Type | Method and Description |
---|---|
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() |
protected JJTQueryParserState jjtree
public QueryParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public QueryParser(InputStream stream)
public QueryParser(InputStream stream, String encoding)
public QueryParser(Reader stream)
public QueryParser(QueryParserTokenManager tm)
public static QueryExpression parseQueryExpression(String queryExpressionString) throws ParseException, TokenMgrError
ParseException
TokenMgrError
public static void main(String[] args) throws ParseException, TokenMgrError
ParseException
TokenMgrError
public final QueryExpression parseInput() throws ParseException
ParseException
public final QueryExpression Query(Vector<String> bucketNames) throws ParseException
ParseException
public final QueryExpression QueryExpression(Vector<String> bucketNames) throws ParseException
ParseException
public final QueryExpression StdQueryExpression() throws ParseException
ParseException
public final QueryExpression ComparisonQueryExpression(Vector<String> bucketNames) throws ParseException
ParseException
public final QueryExpression PriorityQueryExpression(Vector<String> bucketNames) throws ParseException
ParseException
public final QueryExpression CustomQueryExpression(Vector<String> bucketNames) throws ParseException
ParseException
public final void getValues(Vector<String> values) throws ParseException
ParseException
public final void getProperties(Properties p) throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(QueryParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 1999-2015 Apache OODT. All Rights Reserved.