|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectECQLParser
ECQLCompiler
public class ECQLCompiler
ECQLCompiler
Builds the filter, expression or arguments related with the visited node of syntax tree
modules/library/cql (gt-cql.jar)
Field Summary |
---|
Fields inherited from class ECQLParser |
---|
GEOOP, jj_nt, jjtree, lookingAhead, RELGEOOP, token, token_source |
Fields inherited from interface ECQLParserConstants |
---|
AFTER, AND, BBOX, BEFORE, BETWEEN, BEYOND, COLON, COMMA, CONTAINS, CROSSES, DATE_TIME, DEFAULT, DIGIT, DISJOINT, DOES_NOT_EXIST, DUR_DATE, DUR_DAY, DUR_HOUR, DUR_MINUTE, DUR_MONTH, DUR_SECOND, DUR_TIME, DUR_YEAR, DURATION, DURING, DWITHIN, ENVELOPE, EOF, EQ, EQUALS, EXCLUDE, EXISTS, EXPONENT, FALSE, FEET, FLOATING_LITERAL, FULL_DATE, GEOMETRYCOLLECTION, GT, GTE, ID, IDENTIFIER, IN, INCLUDE, INTEGER_LITERAL, INTERSECTS, IS, KILOMETERS, LETTER, LIKE, LINESTRING, LP, LSP, LT, LTE, METERS, MINUS, MULT, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, NAUTICAL_MILES, NEQ, NOT, NULL, OR, OVERLAPS, PERIOD, PLUS, POINT, POLYGON, RELATE, RP, RSP, SENTENCE_SEPARATOR, SLASH, STATUTE_MILES, STRING_LITERAL, tokenImage, TOUCHES, TRUE, UNKNOWN, UTC, UTC_TIME, WITHIN |
Constructor Summary | |
---|---|
ECQLCompiler(String txtSource,
FilterFactory filterFactory)
new instance of TXTCompiler |
Method Summary | |
---|---|
void |
compileExpression()
compiles source to produce a Expression |
void |
compileFilter()
compile source to produce a Filter. |
void |
compileFilterList()
Compiles a list of filters |
Expression |
getExpression()
Return the expression resultant of compiling process |
Filter |
getFilter()
Return the filter resultant of compiling process |
List<Filter> |
getFilterList()
Returns the list of Filters built as the result of calling ECQLParser.FilterListCompilationUnit()() |
String |
getSource()
|
IToken |
getTokenInPosition(int index)
Return the token presents in the position specified. |
void |
jjtreeCloseNodeScope(Node n)
called by parser when the node is closed. |
void |
jjtreeOpenNodeScope(Node n)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ECQLCompiler(String txtSource, FilterFactory filterFactory)
txtSource
- filterFactory
- Method Detail |
---|
public void compileFilter() throws CQLException
getFilter()
.
compileFilter
in interface ICompiler
CQLException
public void compileExpression() throws CQLException
compileExpression
in interface ICompiler
CQLException
public void compileFilterList() throws CQLException
compileFilterList
in interface ICompiler
CQLException
public final String getSource()
getSource
in interface ICompiler
public final Filter getFilter() throws CQLException
getFilter
in interface ICompiler
CQLException
ICompiler.compileFilter()
public final Expression getExpression() throws CQLException
getExpression
in interface ICompiler
CQLException
ICompiler.compileExpression()
public IToken getTokenInPosition(int index)
ICompiler
getTokenInPosition
in interface ICompiler
public List<Filter> getFilterList() throws CQLException
ECQLParser.FilterListCompilationUnit()()
getFilterList
in interface ICompiler
CQLException
- if a ClassCastException occurs while casting a built item to
a Filter.ICompiler.compileFilterList()
public final void jjtreeOpenNodeScope(Node n)
jjtreeOpenNodeScope
in class ECQLParser
public final void jjtreeCloseNodeScope(Node n) throws ParseException
jjtreeCloseNodeScope
in class ECQLParser
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |