Package org.geotools.filter.text.ecql
Class ECQLCompiler
Object
ECQLParser
ECQLCompiler
- All Implemented Interfaces:
ICompiler,ECQLParserConstants,ECQLParserTreeConstants
ECQLCompiler
Builds the filter, expression or arguments related with the visited node of syntax tree
- Since:
- 2.6
- Author:
- Jody Garnett, Mauricio Pazos (Axios Engineering)
-
Field Summary
Fields inherited from class ECQLParser
GEOOP, jj_nt, jjtree, RELGEOOP, token, token_sourceFields inherited from interface ECQLParserConstants
AFTER, AND, ANY, BBOX, BEFORE, BETWEEN, BEYOND, COLON, COMMA, CONTAINS, CROSSES, DATE, DATE_TIME, DE9IM_PATTERN, DEFAULT, DIGIT, DIMENSION_SYMBOL, DISJOINT, DOES_NOT_EXIST, DOUBLE_QUOTE, 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, ILIKE, 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, SRID, STATUTE_MILES, STRING_LITERAL, TEQUALS, TIME_ZONE, tokenImage, TOUCHES, TRUE, UNKNOWN, UTC, UTC_TIME, WITHINFields inherited from interface ECQLParserTreeConstants
JJTADDNODE, JJTBETWEEN_NODE, JJTBOOLEAN_AND_NODE, JJTBOOLEAN_NOT_NODE, JJTBOOLEAN_OR_NODE, JJTCOMPARISONPREDICATE_EQ_NODE, JJTCOMPARISONPREDICATE_GT_NODE, JJTCOMPARISONPREDICATE_GTE_NODE, JJTCOMPARISONPREDICATE_LT_NODE, JJTCOMPARISONPREDICATE_LTE_NODE, JJTCOMPARISONPREDICATE_NOT_EQUAL_NODE, JJTCOMPOUND_ATTRIBUTE_NODE, JJTDATE_NODE, JJTDATETIME_NODE, JJTDE9IM_NODE, JJTDISTANCEUNITS_NODE, JJTDIVNODE, JJTDURATION_DATE_NODE, JJTENVELOPETAGGEDTEXT_NODE, JJTEXCLUDE_NODE, JJTEXISTENCE_PREDICATE_DOESNOTEXIST_NODE, JJTEXISTENCE_PREDICATE_EXISTS_NODE, JJTEXPRESSION_IN_LIST_NODE, JJTFALSENODE, JJTFEATURE_ID_NODE, JJTFLOATINGNODE, JJTFUNCTION_NODE, JJTFUNCTIONARG_NODE, JJTFUNCTIONNAME_NODE, JJTGEOMETRYCOLLECTIONTEXT_NODE, JJTGEOMETRYLITERAL, JJTID_PREDICATE_NODE, JJTIDENTIFIER_NODE, JJTIDENTIFIER_PART_NODE, JJTILIKE_NODE, JJTIN_PREDICATE_NODE, JJTINCLUDE_NODE, JJTINTEGERNODE, JJTLIKE_NODE, JJTLINESTRINGTEXT_NODE, JJTMULNODE, JJTMULTILINESTRINGTEXT_NODE, JJTMULTIPOINTTEXT_NODE, JJTMULTIPOLYGONTEXT_NODE, JJTNEGATIVENUMBER_NODE, jjtNodeName, JJTNOT_BETWEEN_NODE, JJTNOT_ILIKE_NODE, JJTNOT_IN_PREDICATE_NODE, JJTNOT_LIKE_NODE, JJTNOTNULLPREDICATENODE, JJTNULLPREDICATENODE, JJTPERIOD_BETWEEN_DATES_NODE, JJTPERIOD_WITH_DATE_DURATION_NODE, JJTPERIOD_WITH_DURATION_DATE_NODE, JJTPOINT_NODE, JJTPOINTTEXT_NODE, JJTPOLYGONTEXT_NODE, JJTREFERENCEDGEOMETRYLITERAL, JJTRELATE_NODE, JJTROUTINEINVOCATION_GEOOP_BBOX_NODE, JJTROUTINEINVOCATION_GEOOP_BBOX_SRS_NODE, JJTROUTINEINVOCATION_GEOOP_CONTAIN_NODE, JJTROUTINEINVOCATION_GEOOP_CROSS_NODE, JJTROUTINEINVOCATION_GEOOP_DISJOINT_NODE, JJTROUTINEINVOCATION_GEOOP_EQUAL_NODE, JJTROUTINEINVOCATION_GEOOP_INTERSECT_NODE, JJTROUTINEINVOCATION_GEOOP_OVERLAP_NODE, JJTROUTINEINVOCATION_GEOOP_RELATE_NODE, JJTROUTINEINVOCATION_GEOOP_TOUCH_NODE, JJTROUTINEINVOCATION_GEOOP_WITHIN_NODE, JJTROUTINEINVOCATION_RELOP_BEYOND_NODE, JJTROUTINEINVOCATION_RELOP_DWITHIN_NODE, JJTSIMPLE_ATTRIBUTE_NODE, JJTSIMPLEGEOMETRYLITERAL, JJTSTRINGNODE, JJTSUBTRACTNODE, JJTTOLERANCE_NODE, JJTTPAFTER_DATETIME_NODE, JJTTPBEFORE_DATETIME_NODE, JJTTPBEFORE_OR_DURING_PERIOD_NODE, JJTTPDURING_OR_AFTER_PERIOD_NODE, JJTTPDURING_PERIOD_NODE, JJTTPTEQUALS_DATETIME_NODE, JJTTRUENODE, JJTVOID, JJTWKTNODE -
Constructor Summary
ConstructorsConstructorDescriptionECQLCompiler(String txtSource, FilterFactory filterFactory) new instance of TXTCompiler -
Method Summary
Modifier and TypeMethodDescriptionvoidcompiles source to produce a Expressionvoidcompile source to produce a Filter.voidCompiles a list of filtersfinal ExpressionReturn the expression resultant of compiling processfinal FilterReturn the filter resultant of compiling processReturns the list of Filters built as the result of calling {@link #FilterListCompilationUnit()()}final StringgetTokenInPosition(int index) Return the token presents in the position specified.final voidcalled by parser when the node is closed.final voidMethods inherited from class ECQLParser
Attribute, AttributeTail, BBoxArgumentList, BetweenPredicate, BinaryExpression, BooleanFactor, BooleanLiteral, BooleanPrimary, BooleanTerm, BooleanValueExpression, BoundingBox, CharacterPattern, ComparisonPredicate, DateLiteral, DateTime, DateTimeExpression, DE9IM, disable_tracing, DistanceUnits, Duration, ECQLExpression, enable_tracing, EnvelopeTaggedText, EnvelopText, Evaluate, ExistencePredicate, Expression, ExpressionCompilationUnit, ExpressionInList, FilterCompilationUnit, FilterListCompilationUnit, FloatingLiteral, Function, FunctionArg, FunctionName, GeneralLiteral, generateParseException, GeometryCollectionTaggedText, GeometryCollectionText, GeometryLiteral, GeoRoutineArgumentList, getNextToken, getToken, Identifier, IdentifierPart, IdList, IdPredicate, IdPredicateDeprecated, IdValue, IlikePredicate, IncludeExcludePredicate, InPredicate, InPredicateList, IntegerLiteral, isDE9IM, isGeoOp, isRelGeoOp, likePredicate, LineStringTaggedText, LineStringText, Literal, logDeprecatedWarning, MultiLineStringTaggedText, MultiLineStringText, MultiplicativeExpression, MultiPointTaggedText, MultiPointText, MultiPolygonTaggedText, MultiPolygonText, NullPredicate, NumericLiteral, Period, PeriodTail, Point, PointTaggedText, PointText, PolygonTaggedText, PolygonText, Predicate, ReferencedGeometryLiteral, ReInit, ReInit, ReInit, ReInit, RelateArgumentList, RelateTail, RelGeoRoutineArgumentList, RoutineInvocation, RoutineInvocationGeneric, RoutineInvocationGeoOp, RoutineInvocationRelGeoOp, SearchCondition, SequenceOfSearchConditions, SimpleAttributeName, SimpleGeometryLiteral, StringLiteral, TemporalPredicate, TemporalPredicateAfter, TemporalPredicateBefore, TemporalPredicateDuring, TemporalPredicateHead, TemporalPredicateTail, TemporalPredicateTEquals, Tolerance, trace_enabled, UnaryExpression, UnsignedNumericLiteral
-
Constructor Details
-
ECQLCompiler
new instance of TXTCompiler
-
-
Method Details
-
compileFilter
compile source to produce a Filter. The filter result must be retrieved withgetFilter().- Specified by:
compileFilterin interfaceICompiler- Throws:
CQLException
-
compileExpression
compiles source to produce a Expression- Specified by:
compileExpressionin interfaceICompiler- Throws:
CQLException
-
compileFilterList
Compiles a list of filters- Specified by:
compileFilterListin interfaceICompiler- Throws:
CQLException
-
getSource
-
getFilter
Return the filter resultant of compiling process- Specified by:
getFilterin interfaceICompiler- Returns:
- Filter
- Throws:
CQLException- See Also:
-
getExpression
Return the expression resultant of compiling process- Specified by:
getExpressionin interfaceICompiler- Returns:
- Expression
- Throws:
CQLException- See Also:
-
getTokenInPosition
Description copied from interface:ICompilerReturn the token presents in the position specified.- Specified by:
getTokenInPositionin interfaceICompiler- Returns:
- IToken
-
getFilterList
Returns the list of Filters built as the result of calling {@link #FilterListCompilationUnit()()}- Specified by:
getFilterListin interfaceICompiler- Returns:
- List
- Throws:
CQLException- if a ClassCastException occurs while casting a built item to a Filter.- See Also:
-
jjtreeOpenNodeScope
- Overrides:
jjtreeOpenNodeScopein classECQLParser
-
jjtreeCloseNodeScope
called by parser when the node is closed.- Overrides:
jjtreeCloseNodeScopein classECQLParser- Throws:
ParseException
-