Class CQL2Parser
- Object
-
- CQL2Parser
-
- All Implemented Interfaces:
CQL2ParserConstants
,CQL2ParserTreeConstants
- Direct Known Subclasses:
CQL2Compiler
public class CQL2Parser extends Object implements CQL2ParserTreeConstants, CQL2ParserConstants
CQL2Parser is the result of a javacc jjtree grammar.- Since:
- 2.26
- Author:
- Mauricio Pazos - Axios Engineering, Andrea Aime - GeoSolutions
-
-
Field Summary
Fields Modifier and Type Field Description protected static Set
GEOOP
Token
jj_nt
protected JJTCQL2ParserState
jjtree
boolean
lookingAhead
Token
token
CQL2ParserTokenManager
token_source
-
Fields inherited from interface CQL2ParserConstants
AFTER, AND, ANY, BBOX, BEFORE, BETWEEN, CARET, COLON, COMMA, CONTAINS, CROSSES, DATE, DATE_OPEN, DATE_TIME, DATEFUNC, DE9IM_PATTERN, DEFAULT, DIGIT, DIMENSION_SYMBOL, DISJOINT, DOLLAR, DOUBLE_QUOTE, DUR_DATE, DUR_DAY, DUR_HOUR, DUR_MINUTE, DUR_MONTH, DUR_SECOND, DUR_TIME, DUR_YEAR, DURATION, DURING, EOF, EQ, EQUALS, EXPONENT, FALSE, FLOATING_LITERAL, FULL_DATE, GEOMETRYCOLLECTION, GT, GTE, IDENTIFIER, IN, INTDIV, INTEGER_LITERAL, INTERSECTS, INTERVAL, IS, LETTER, LIKE, LINESTRING, LP, LSP, LT, LTE, MINUS, MULT, MULTILINESTRING, MULTIPOINT, MULTIPOLYGON, NEQ, NOT, NULL, OR, OVERLAPS, PERC, PERIOD, PERIODFUNC, PLUS, POINT, POLYGON, QUOTE, RP, RSP, SENTENCE_SEPARATOR, SLASH, STRING_LITERAL, TEQUALS, TIME_ZONE, TIMESTAMPFUNC, tokenImage, TOUCHES, TRUE, UNKNOWN, UTC, UTC_TIME, WITHIN
-
Fields inherited from interface CQL2ParserTreeConstants
JJTADDNODE, JJTBBOXTAGGEDTEXT_NODE, 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, JJTDATEOPEN, JJTDATETIME_NODE, JJTDIVNODE, JJTEXPRESSION_IN_LIST_NODE, JJTFALSENODE, JJTFLOATINGNODE, JJTFUNCTION_NODE, JJTFUNCTIONARG_NODE, JJTFUNCTIONNAME_NODE, JJTGEOMETRYCOLLECTIONTEXT_NODE, JJTGEOMETRYLITERAL, JJTIDENTIFIER_NODE, JJTIDENTIFIER_PART_NODE, JJTIN_PREDICATE_NODE, JJTINTDIVNODE, JJTINTEGERNODE, JJTINTERVAL, JJTLIKE_NODE, JJTLINESTRINGTEXT_NODE, JJTMULNODE, JJTMULTILINESTRINGTEXT_NODE, JJTMULTIPOINTTEXT_NODE, JJTMULTIPOLYGONTEXT_NODE, JJTNEGATIVENUMBER_NODE, jjtNodeName, JJTNOT_BETWEEN_NODE, JJTNOT_IN_PREDICATE_NODE, JJTNOT_LIKE_NODE, JJTNOTNULLPREDICATENODE, JJTNULLPREDICATENODE, JJTPOINT_NODE, JJTPOINTTEXT_NODE, JJTPOLYGONTEXT_NODE, JJTPOWERNODE, JJTREMAINDERNODE, 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_TOUCH_NODE, JJTROUTINEINVOCATION_GEOOP_WITHIN_NODE, JJTSIMPLE_ATTRIBUTE_NODE, JJTSTRINGNODE, JJTSUBTRACTNODE, JJTTPAFTER_DATETIME_NODE, JJTTPBEFORE_DATETIME_NODE, JJTTPDURING_PERIOD_NODE, JJTTPTEQUALS_DATETIME_NODE, JJTTRUENODE, JJTVOID, JJTWKTNODE
-
-
Constructor Summary
Constructors Constructor Description CQL2Parser(InputStream stream)
CQL2Parser(InputStream stream, String encoding)
CQL2Parser(Reader stream)
CQL2Parser(CQL2ParserTokenManager tm)
-
Method Summary
-
-
-
Field Detail
-
jjtree
protected JJTCQL2ParserState jjtree
-
GEOOP
protected static final Set GEOOP
-
token_source
public CQL2ParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
lookingAhead
public boolean lookingAhead
-
-
Constructor Detail
-
CQL2Parser
public CQL2Parser(InputStream stream)
-
CQL2Parser
public CQL2Parser(InputStream stream, String encoding)
-
CQL2Parser
public CQL2Parser(Reader stream)
-
CQL2Parser
public CQL2Parser(CQL2ParserTokenManager 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()
-
FilterCompilationUnit
public final Node FilterCompilationUnit() throws ParseException
- Throws:
ParseException
-
ExpressionCompilationUnit
public final Node ExpressionCompilationUnit() throws ParseException
- Throws:
ParseException
-
CQL2Expression
public final void CQL2Expression() 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
-
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
-
GeoRoutineArgumentList
public final void GeoRoutineArgumentList() throws ParseException
- Throws:
ParseException
-
GeometryLiteral
public final void GeometryLiteral() throws ParseException
- Throws:
ParseException
-
RoutineInvocationGeneric
public final void RoutineInvocationGeneric() 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
-
TemporalExpressionInterval
public final void TemporalExpressionInterval() throws ParseException
- Throws:
ParseException
-
TemporalExpression
public final void TemporalExpression() throws ParseException
- Throws:
ParseException
-
Interval
public final void Interval() throws ParseException
- Throws:
ParseException
-
InstantParameter
public final void InstantParameter() throws ParseException
Simplified so that we only handle literals for the moment, to be udpated once discussion at https://github.com/opengeospatial/ogcapi-features/issues/674 ends- Throws:
ParseException
-
likePredicate
public final void likePredicate() 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
-
PowerExpression
public final void PowerExpression() 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
-
BBOXTaggedText
public final void BBOXTaggedText() throws ParseException
- Throws:
ParseException
-
BBOXText
public final void BBOXText() 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(CQL2ParserTokenManager 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()
-
-