Class QueryParser
- java.lang.Object
-
- repast.simphony.engine.watcher.query.QueryParser
-
- All Implemented Interfaces:
QueryParserConstants
,QueryParserTreeConstants
public class QueryParser extends Object implements QueryParserTreeConstants, QueryParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
protected repast.simphony.engine.watcher.query.JJTQueryParserState
jjtree
boolean
lookingAhead
Token
token
QueryParserTokenManager
token_source
-
Fields inherited from interface repast.simphony.engine.watcher.query.QueryParserConstants
AND, COLOCATED, DECNUMBER, DEFAULT, DIGIT, EOF, EXPONENT, FLOAT, LINKED, LINKED_FROM, LINKED_TO, NAME, NOT, OR, tokenImage, WITHIN, WITHIN_MOORE, WITHIN_VN
-
Fields inherited from interface repast.simphony.engine.watcher.query.QueryParserTreeConstants
JJTANDEXPRESSION, JJTCOLOCATED, JJTLINKED, JJTLINKEDFROM, JJTLINKEDTO, JJTNAME, jjtNodeName, JJTNOT, JJTNUMBER, JJTOREXPRESSION, JJTSTART, JJTVOID, JJTWITHIN, JJTWITHINMOORE, JJTWITHINVN
-
-
Constructor Summary
Constructors Constructor Description QueryParser(InputStream stream)
QueryParser(InputStream stream, String encoding)
QueryParser(Reader stream)
QueryParser(QueryParserTokenManager tm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
BooleanExpression()
void
Command()
void
disable_tracing()
void
enable_tracing()
ParseException
generateParseException()
Token
getNextToken()
Token
getToken(int index)
void
Linked()
static void
main(String[] args)
void
Name()
void
Number()
void
QueryExpression()
void
ReInit(InputStream stream)
void
ReInit(InputStream stream, String encoding)
void
ReInit(Reader stream)
void
ReInit(QueryParserTokenManager tm)
ASTStart
Start()
void
Within()
-
-
-
Field Detail
-
jjtree
protected repast.simphony.engine.watcher.query.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
-
main
public static void main(String[] args)
-
Start
public final ASTStart Start() throws ParseException
- Throws:
ParseException
-
BooleanExpression
public final void BooleanExpression() throws ParseException
- Throws:
ParseException
-
QueryExpression
public final void QueryExpression() throws ParseException
- Throws:
ParseException
-
Command
public final void Command() throws ParseException
- Throws:
ParseException
-
Within
public final void Within() throws ParseException
- Throws:
ParseException
-
Linked
public final void Linked() throws ParseException
- Throws:
ParseException
-
Number
public final void Number() throws ParseException
- Throws:
ParseException
-
Name
public final void Name() 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()
-
-