Class ECQLParser
- Object
-
- ECQLParser
-
- All Implemented Interfaces:
ECQLParserConstants
,ECQLParserTreeConstants
- Direct Known Subclasses:
ECQLCompiler
public class ECQLParser extends Object implements ECQLParserTreeConstants, ECQLParserConstants
ECQLParser is the result of a javacc jjtree grammar.- Since:
- 2.6
- Author:
- Mauricio Pazos - Axios Engineering
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set
GEOOP
Token
jj_nt
protected JJTECQLParserState
jjtree
boolean
lookingAhead
protected static Set
RELGEOOP
Token
token
ECQLParserTokenManager
token_source
-
Fields 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, WITHIN
-
Fields 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
Constructors Constructor Description ECQLParser(InputStream stream)
ECQLParser(InputStream stream, String encoding)
ECQLParser(Reader stream)
ECQLParser(ECQLParserTokenManager tm)
-
Method Summary
-
-
-
Field Detail
-
jjtree
protected JJTECQLParserState jjtree
-
GEOOP
protected static final Set GEOOP
-
RELGEOOP
protected static final Set RELGEOOP
-
token_source
public ECQLParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
lookingAhead
public boolean lookingAhead
-
-
Constructor Detail
-
ECQLParser
public ECQLParser(InputStream stream)
-
ECQLParser
public ECQLParser(InputStream stream, String encoding)
-
ECQLParser
public ECQLParser(Reader stream)
-
ECQLParser
public ECQLParser(ECQLParserTokenManager tm)
-
-
Method Detail
-
jjtreeOpenNodeScope
public void jjtreeOpenNodeScope(Node n) throws ParseException
- Throws:
ParseException
-
jjtreeCloseNodeScope
public void jjtreeCloseNodeScope(Node n) throws ParseException
- Throws:
ParseException
-
isGeoOp
protected boolean isGeoOp()
-
isRelGeoOp
protected boolean isRelGeoOp()
-
logDeprecatedWarning
protected void logDeprecatedWarning(String op)
-
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
public final Node FilterCompilationUnit() throws ParseException
- Throws:
ParseException
-
ExpressionCompilationUnit
public final Node ExpressionCompilationUnit() throws ParseException
- Throws:
ParseException
-
ECQLExpression
public final void ECQLExpression() throws ParseException
- Throws:
ParseException
-
FilterListCompilationUnit
public final Node FilterListCompilationUnit() throws ParseException
- Throws:
ParseException
-
SequenceOfSearchConditions
public final void SequenceOfSearchConditions() throws ParseException
- Throws:
ParseException
-
SearchCondition
public final void SearchCondition() throws ParseException
- Throws:
ParseException
-
BooleanValueExpression
public final void BooleanValueExpression() throws ParseException
- Throws:
ParseException
-
BooleanTerm
public final void BooleanTerm() throws ParseException
- Throws:
ParseException
-
BooleanFactor
public final void BooleanFactor() throws ParseException
- Throws:
ParseException
-
BooleanPrimary
public final void BooleanPrimary() throws ParseException
- Throws:
ParseException
-
Predicate
public final void Predicate() throws ParseException
- Throws:
ParseException
-
IdPredicateDeprecated
public final void IdPredicateDeprecated() throws ParseException
- Throws:
ParseException
-
IdPredicate
public final void IdPredicate() throws ParseException
- Throws:
ParseException
-
IdList
public final void IdList() throws ParseException
- Throws:
ParseException
-
IdValue
public final void IdValue() throws ParseException
- Throws:
ParseException
-
InPredicate
public final void InPredicate() throws ParseException
- Throws:
ParseException
-
InPredicateList
public final void InPredicateList() throws ParseException
- Throws:
ParseException
-
ExpressionInList
public final void ExpressionInList() throws ParseException
- Throws:
ParseException
-
RoutineInvocation
public final void RoutineInvocation() throws ParseException
- Throws:
ParseException
-
RoutineInvocationGeoOp
public final void RoutineInvocationGeoOp() throws ParseException
- Throws:
ParseException
-
RelateTail
public final void RelateTail() throws ParseException
- Throws:
ParseException
-
RelateArgumentList
public final void RelateArgumentList() throws ParseException
- Throws:
ParseException
-
DE9IM
public final void DE9IM() throws ParseException
Checks the intersection matrix. This pattern is guard by the isDE9IM() function.- Throws:
ParseException
-
GeoRoutineArgumentList
public final void GeoRoutineArgumentList() throws ParseException
- Throws:
ParseException
-
BBoxArgumentList
public final void BBoxArgumentList() throws ParseException
- Throws:
ParseException
-
BoundingBox
public final void BoundingBox() throws ParseException
- Throws:
ParseException
-
RoutineInvocationRelGeoOp
public final void RoutineInvocationRelGeoOp() throws ParseException
- Throws:
ParseException
-
RelGeoRoutineArgumentList
public final void RelGeoRoutineArgumentList() throws ParseException
- Throws:
ParseException
-
Tolerance
public final void Tolerance() throws ParseException
- Throws:
ParseException
-
DistanceUnits
public final void DistanceUnits() throws ParseException
::= '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
public final void GeometryLiteral() throws ParseException
- Throws:
ParseException
-
ReferencedGeometryLiteral
public final void ReferencedGeometryLiteral() throws ParseException
- Throws:
ParseException
-
SimpleGeometryLiteral
public final void SimpleGeometryLiteral() throws ParseException
- Throws:
ParseException
-
RoutineInvocationGeneric
public final void RoutineInvocationGeneric() throws ParseException
- Throws:
ParseException
-
IncludeExcludePredicate
public final void IncludeExcludePredicate() throws ParseException
- Throws:
ParseException
-
ComparisonPredicate
public final void ComparisonPredicate() throws ParseException
- Throws:
ParseException
-
NullPredicate
public final void NullPredicate() throws ParseException
- Throws:
ParseException
-
TemporalPredicate
public final void TemporalPredicate() throws ParseException
- Throws:
ParseException
-
TemporalPredicateHead
public final void TemporalPredicateHead() throws ParseException
- Throws:
ParseException
-
TemporalPredicateTail
public final void TemporalPredicateTail() throws ParseException
- Throws:
ParseException
-
TemporalPredicateTEquals
public final void TemporalPredicateTEquals() throws ParseException
- Throws:
ParseException
-
TemporalPredicateBefore
public final void TemporalPredicateBefore() throws ParseException
- Throws:
ParseException
-
TemporalPredicateAfter
public final void TemporalPredicateAfter() throws ParseException
- Throws:
ParseException
-
TemporalPredicateDuring
public final void TemporalPredicateDuring() throws ParseException
- Throws:
ParseException
-
DateTimeExpression
public final void DateTimeExpression() throws ParseException
- Throws:
ParseException
-
Period
public final void Period() throws ParseException
- Throws:
ParseException
-
PeriodTail
public final void PeriodTail() throws ParseException
- Throws:
ParseException
-
DateTime
public final void DateTime() throws ParseException
- Throws:
ParseException
-
Duration
public final void Duration() throws ParseException
- Throws:
ParseException
-
ExistencePredicate
public final void ExistencePredicate() throws ParseException
- Throws:
ParseException
-
likePredicate
public final void likePredicate() throws ParseException
- Throws:
ParseException
-
IlikePredicate
public final void IlikePredicate() throws ParseException
- Throws:
ParseException
-
CharacterPattern
public final void CharacterPattern() throws ParseException
- Throws:
ParseException
-
BetweenPredicate
public final void BetweenPredicate() throws ParseException
- Throws:
ParseException
-
Expression
public final void Expression() throws ParseException
- Throws:
ParseException
-
BinaryExpression
public final void BinaryExpression() throws ParseException
- Throws:
ParseException
-
MultiplicativeExpression
public final void MultiplicativeExpression() throws ParseException
- Throws:
ParseException
-
UnaryExpression
public final void UnaryExpression() throws ParseException
- Throws:
ParseException
-
Evaluate
public final void Evaluate() throws ParseException
- Throws:
ParseException
-
Identifier
public final void Identifier() throws ParseException
- Throws:
ParseException
-
IdentifierPart
public final void IdentifierPart() throws ParseException
- Throws:
ParseException
-
Attribute
public final void Attribute() throws ParseException
- Throws:
ParseException
-
SimpleAttributeName
public final void SimpleAttributeName() throws ParseException
- Throws:
ParseException
-
AttributeTail
public final void AttributeTail() throws ParseException
- Throws:
ParseException
-
Literal
public final void Literal() throws ParseException
- Throws:
ParseException
-
DateLiteral
public final void DateLiteral() throws ParseException
- Throws:
ParseException
-
NumericLiteral
public final void NumericLiteral() throws ParseException
- Throws:
ParseException
-
UnsignedNumericLiteral
public final void UnsignedNumericLiteral() throws ParseException
- Throws:
ParseException
-
GeneralLiteral
public final void GeneralLiteral() throws ParseException
- Throws:
ParseException
-
IntegerLiteral
public final void IntegerLiteral() throws ParseException
- Throws:
ParseException
-
FloatingLiteral
public final void FloatingLiteral() throws ParseException
- Throws:
ParseException
-
BooleanLiteral
public final void BooleanLiteral() throws ParseException
- Throws:
ParseException
-
StringLiteral
public final void StringLiteral() throws ParseException
- Throws:
ParseException
-
Function
public final void Function() throws ParseException
- Throws:
ParseException
-
FunctionName
public final void FunctionName() throws ParseException
- Throws:
ParseException
-
FunctionArg
public final void FunctionArg() throws ParseException
- Throws:
ParseException
-
Point
public final void Point() throws ParseException
- Throws:
ParseException
-
LineStringText
public final void LineStringText() throws ParseException
- Throws:
ParseException
-
PointTaggedText
public final void PointTaggedText() throws ParseException
- Throws:
ParseException
-
PointText
public final void PointText() throws ParseException
- Throws:
ParseException
-
LineStringTaggedText
public final void LineStringTaggedText() throws ParseException
- Throws:
ParseException
-
PolygonTaggedText
public final void PolygonTaggedText() throws ParseException
- Throws:
ParseException
-
PolygonText
public final void PolygonText() throws ParseException
- Throws:
ParseException
-
MultiPointTaggedText
public final void MultiPointTaggedText() throws ParseException
- Throws:
ParseException
-
MultiPointText
public final void MultiPointText() throws ParseException
- Throws:
ParseException
-
MultiLineStringTaggedText
public final void MultiLineStringTaggedText() throws ParseException
- Throws:
ParseException
-
MultiLineStringText
public final void MultiLineStringText() throws ParseException
- Throws:
ParseException
-
MultiPolygonTaggedText
public final void MultiPolygonTaggedText() throws ParseException
- Throws:
ParseException
-
MultiPolygonText
public final void MultiPolygonText() throws ParseException
- Throws:
ParseException
-
GeometryCollectionTaggedText
public final void GeometryCollectionTaggedText() throws ParseException
- Throws:
ParseException
-
GeometryCollectionText
public final void GeometryCollectionText() throws ParseException
- Throws:
ParseException
-
EnvelopeTaggedText
public final void EnvelopeTaggedText() throws ParseException
- Throws:
ParseException
-
EnvelopText
public final void EnvelopText() 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(ECQLParserTokenManager 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()
-
-