Class CQLParser
Object
CQLParser
- All Implemented Interfaces:
CQLParserConstants
,CQLParserTreeConstants
- Direct Known Subclasses:
CQLCompiler
CQLParser is the result of a javacc jjtree grammar.
- Since:
- 2.5
- Author:
- Ian Schneider, Mauricio Pazos - Axios Engineering
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Set
initialize geooperationsNext token.protected JJTCQLParserState
protected static final Set
Current token.Generated Token Manager.Fields inherited from interface CQLParserConstants
AFTER, AND, ANY, BBOX, BEFORE, BETWEEN, BEYOND, COLON, COMMA, CONTAINS, CROSSES, 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, IDENTIFIER, 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, TEQUALS, TIME_ZONE, tokenImage, TOUCHES, TRUE, UNKNOWN, UTC, UTC_TIME, WITHIN
Fields inherited from interface CQLParserTreeConstants
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, JJTDATETIME_NODE, JJTDE9IM_NODE, JJTDISTANCEUNITS_NODE, JJTDIVNODE, JJTDURATION_DATE_NODE, JJTENVELOPETAGGEDTEXT_NODE, JJTEXCLUDE_NODE, JJTEXISTENCE_PREDICATE_DOESNOTEXIST_NODE, JJTEXISTENCE_PREDICATE_EXISTS_NODE, JJTFALSENODE, JJTFLOATINGNODE, JJTFUNCTION_NODE, JJTFUNCTIONARG_NODE, JJTFUNCTIONNAME_NODE, JJTIDENTIFIER_NODE, JJTIDENTIFIER_PART_NODE, JJTINCLUDE_NODE, JJTINTEGERNODE, JJTLIKE_NODE, JJTMULNODE, jjtNodeName, JJTNOT_BETWEEN_NODE, JJTNOT_LIKE_NODE, JJTNOTNULLPREDICATENODE, JJTNULLPREDICATENODE, JJTPERIOD_BETWEEN_DATES_NODE, JJTPERIOD_WITH_DATE_DURATION_NODE, JJTPERIOD_WITH_DURATION_DATE_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, 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
ConstructorsConstructorDescriptionCQLParser
(InputStream stream) Constructor with InputStream.CQLParser
(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
DateTime()
final void
final void
DE9IM()
Checks the intersection matrix.final void
Disable tracing.final void
::= 'feet' | 'meters' | 'statute miles' | 'nautical miles' | 'kilometers' TODO this set of units is just an example. final void
Duration()
final void
Enable tracing.final void
final void
final void
Evaluate()
final void
final void
final Node
final Node
final Node
final void
final void
Function()
final void
final void
final void
Generate ParseException.final void
final void
final void
final void
final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final void
final void
final void
final void
protected boolean
isDE9IM()
True if the current token matches with the allowed characters: "0,1,2,*,T,F".protected boolean
isGeoOp()
protected boolean
void
void
final void
final void
final void
Literal()
protected void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
Period()
final void
final void
Point()
final void
final void
final void
final void
final void
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
::= "T" | "F" | "*" | "0" | "1" | "2" final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final boolean
Trace enabled.final void
final void
-
Field Details
-
jjtree
-
GEOOP
initialize geooperations -
RELGEOOP
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
CQLParser
Constructor with InputStream. -
CQLParser
Constructor with InputStream and supplied encoding -
CQLParser
Constructor. -
CQLParser
Constructor with generated Token Manager.
-
-
Method Details
-
jjtreeOpenNodeScope
- Throws:
ParseException
-
jjtreeCloseNodeScope
- Throws:
ParseException
-
isGeoOp
protected boolean isGeoOp() -
isRelGeoOp
protected boolean isRelGeoOp() -
logDeprecatedWarning
-
isDE9IM
protected boolean isDE9IM()True if the current token matches with the allowed characters: "0,1,2,*,T,F". The length of of intersection pattern is limited to 9 characters. -
FilterCompilationUnit
- Throws:
ParseException
-
ExpressionCompilationUnit
- Throws:
ParseException
-
FilterListCompilationUnit
- Throws:
ParseException
-
SearchCondition
- Throws:
ParseException
-
SequenceOfSearchConditions
- Throws:
ParseException
-
BooleanValueExpression
- Throws:
ParseException
-
BooleanTerm
- Throws:
ParseException
-
BooleanFactor
- Throws:
ParseException
-
BooleanPrimary
- Throws:
ParseException
-
Predicate
- Throws:
ParseException
-
RoutineInvocation
- Throws:
ParseException
-
RoutineInvocationGeoOp
- Throws:
ParseException
-
GeoRoutineArgumentList
- Throws:
ParseException
-
RelateArgumentList
::= "T" | "F" | "*" | "0" | "1" | "2" - Throws:
ParseException
-
DE9IM
Checks the intersection matrix.::= "T" | "F" | "*" | "0" | "1" | "2" This pattern is guard by the isDE9IM() function. - Throws:
ParseException
-
BBoxArgumentList
- Throws:
ParseException
-
RoutineInvocationRelGeoOp
- Throws:
ParseException
-
RelGeoRoutineArgumentList
- Throws:
ParseException
-
Tolerance
- Throws:
ParseException
-
UnsignedNumericLiteral
- Throws:
ParseException
-
DistanceUnits
::= 'feet' | 'meters' | 'statute miles' | 'nautical miles' | 'kilometers' TODO this set of units is just an example. The real list of distance unit must be developed - Throws:
ParseException
-
GeometryLiteral
- Throws:
ParseException
-
RoutineInvocationGeneric
- Throws:
ParseException
-
IncludeExcludePredicate
- Throws:
ParseException
-
ComparisonPredicate
- Throws:
ParseException
-
NullPredicate
- Throws:
ParseException
-
TemporalPredicate
- Throws:
ParseException
-
TemporalPredicateTEquals
- Throws:
ParseException
-
TemporalPredicateBefore
- Throws:
ParseException
-
TemporalPredicateAfter
- Throws:
ParseException
-
TemporalPredicateDuring
- Throws:
ParseException
-
DateTimeExpression
- Throws:
ParseException
-
Period
- Throws:
ParseException
-
PeriodTail
- Throws:
ParseException
-
DateTime
- Throws:
ParseException
-
Duration
- Throws:
ParseException
-
ExistencePredicate
- Throws:
ParseException
-
TextPredicate
- Throws:
ParseException
-
CharacterPattern
- Throws:
ParseException
-
BetweenPredicate
- Throws:
ParseException
-
Expression
- Throws:
ParseException
-
BinaryExpression
- Throws:
ParseException
-
MultiplicativeExpression
- Throws:
ParseException
-
UnaryExpression
- Throws:
ParseException
-
Evaluate
- Throws:
ParseException
-
Identifier
- Throws:
ParseException
-
IdentifierPart
- Throws:
ParseException
-
Attribute
- Throws:
ParseException
-
SimpleAttributeName
- Throws:
ParseException
-
AttributeTail
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
SignedNumericLiteral
- Throws:
ParseException
-
GeneralLiteral
- Throws:
ParseException
-
IntegerLiteral
- Throws:
ParseException
-
FloatingLiteral
- Throws:
ParseException
-
BooleanLiteral
- Throws:
ParseException
-
StringLiteral
- Throws:
ParseException
-
Function
- Throws:
ParseException
-
FunctionName
- Throws:
ParseException
-
FunctionArg
- Throws:
ParseException
-
Point
- Throws:
ParseException
-
LineStringText
- Throws:
ParseException
-
PointTaggedText
- Throws:
ParseException
-
PointText
- Throws:
ParseException
-
LineStringTaggedText
- Throws:
ParseException
-
PolygonTaggedText
- Throws:
ParseException
-
PolygonText
- Throws:
ParseException
-
MultiPointTaggedText
- Throws:
ParseException
-
MultiPointText
- Throws:
ParseException
-
MultiLineStringTaggedText
- Throws:
ParseException
-
MultiLineStringText
- Throws:
ParseException
-
MultiPolygonTaggedText
- Throws:
ParseException
-
MultiPolygonText
- Throws:
ParseException
-
GeometryCollectionTaggedText
- Throws:
ParseException
-
GeometryCollectionText
- Throws:
ParseException
-
EnvelopeTaggedText
- Throws:
ParseException
-
EnvelopText
- Throws:
ParseException
-
NumericLiteral
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-