org.geotools.filter.text.generated.parsers
Class CQLParser

Object
  extended by CQLParser
All Implemented Interfaces:
CQLParserConstants, CQLParserTreeConstants
Direct Known Subclasses:
CQLCompiler

public class CQLParser
extends Object
implements CQLParserTreeConstants, CQLParserConstants

CQLParser is the result of a javacc jjtree grammar.

Since:
2.5
Author:
Ian Schneider, Mauricio Pazos - Axios Engineering

Field Summary
protected static Set GEOOP
          initialize geooperations
 Token jj_nt
           
protected  JJTCQLParserState jjtree
           
 boolean lookingAhead
           
protected static Set RELGEOOP
           
 Token token
           
 CQLParserTokenManager token_source
           
 
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
 
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
 
Constructor Summary
CQLParser(CQLParserTokenManager tm)
           
CQLParser(InputStream stream)
           
CQLParser(InputStream stream, String encoding)
           
CQLParser(Reader stream)
           
 
Method Summary
 void Attribute()
           
 void AttributeTail()
           
 void BBoxArgumentList()
           
 void BetweenPredicate()
           
 void BinaryExpression()
           
 void BooleanFactor()
           
 void BooleanLiteral()
           
 void BooleanPrimary()
           
 void BooleanTerm()
           
 void BooleanValueExpression()
           
 void CharacterPattern()
           
 void ComparisonPredicate()
           
 void DateTime()
           
 void DateTimeExpression()
           
 void DE9IM()
          Checks the intersection matrix.
 void disable_tracing()
           
 void DistanceUnits()
           ::= 'feet' | 'meters' | 'statute miles' | 'nautical miles' | 'kilometers' TODO this set of units is just an example.
 void Duration()
           
 void enable_tracing()
           
 void EnvelopeTaggedText()
           
 void EnvelopText()
           
 void Evaluate()
           
 void ExistencePredicate()
           
 void Expression()
           
 Node ExpressionCompilationUnit()
           
 Node FilterCompilationUnit()
           
 Node FilterListCompilationUnit()
           
 void FloatingLiteral()
           
 void Function()
           
 void FunctionArg()
           
 void FunctionName()
           
 void GeneralLiteral()
           
 ParseException generateParseException()
           
 void GeometryCollectionTaggedText()
           
 void GeometryCollectionText()
           
 void GeometryLiteral()
           
 void GeoRoutineArgumentList()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void Identifier()
           
 void IdentifierPart()
           
 void IncludeExcludePredicate()
           
 void IntegerLiteral()
           
protected  boolean isDE9IM()
          True if the current token matches with the allowed characters: "0,1,2,*,T,F".
protected  boolean isGeoOp()
           
protected  boolean isRelGeoOp()
           
 void jjtreeCloseNodeScope(Node n)
           
 void jjtreeOpenNodeScope(Node n)
           
 void LineStringTaggedText()
           
 void LineStringText()
           
 void Literal()
           
protected  void logDeprecatedWarning(String op)
           
 void MultiLineStringTaggedText()
           
 void MultiLineStringText()
           
 void MultiplicativeExpression()
           
 void MultiPointTaggedText()
           
 void MultiPointText()
           
 void MultiPolygonTaggedText()
           
 void MultiPolygonText()
           
 void NullPredicate()
           
 void NumericLiteral()
           
 void Period()
           
 void PeriodTail()
           
 void Point()
           
 void PointTaggedText()
           
 void PointText()
           
 void PolygonTaggedText()
           
 void PolygonText()
           
 void Predicate()
           
 void ReInit(CQLParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(Reader stream)
           
 void RelateArgumentList()
           ::= "T" | "F" | "*" | "0" | "1" | "2"
 void RelGeoRoutineArgumentList()
           
 void RoutineInvocation()
           
 void RoutineInvocationGeneric()
           
 void RoutineInvocationGeoOp()
           
 void RoutineInvocationRelGeoOp()
           
 void SearchCondition()
           
 void SequenceOfSearchConditions()
           
 void SignedNumericLiteral()
           
 void SimpleAttributeName()
           
 void StringLiteral()
           
 void TemporalPredicate()
           
 void TemporalPredicateAfter()
           
 void TemporalPredicateBefore()
           
 void TemporalPredicateDuring()
           
 void TemporalPredicateTEquals()
           
 void TextPredicate()
           
 void Tolerance()
           
 void UnaryExpression()
           
 void UnsignedNumericLiteral()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTCQLParserState jjtree

GEOOP

protected static final Set GEOOP
initialize geooperations


RELGEOOP

protected static final Set RELGEOOP

token_source

public CQLParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

CQLParser

public CQLParser(InputStream stream)

CQLParser

public CQLParser(InputStream stream,
                 String encoding)

CQLParser

public CQLParser(Reader stream)

CQLParser

public CQLParser(CQLParserTokenManager 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

FilterListCompilationUnit

public final Node FilterListCompilationUnit()
                                     throws ParseException
Throws:
ParseException

SearchCondition

public final void SearchCondition()
                           throws ParseException
Throws:
ParseException

SequenceOfSearchConditions

public final void SequenceOfSearchConditions()
                                      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

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

RelateArgumentList

public final void RelateArgumentList()
                              throws ParseException
::= "T" | "F" | "*" | "0" | "1" | "2"

Throws:
ParseException

DE9IM

public final void DE9IM()
                 throws ParseException
Checks the intersection matrix. ::= "T" | "F" | "*" | "0" | "1" | "2" This pattern is guard by the isDE9IM() function.

Throws:
ParseException

BBoxArgumentList

public final void BBoxArgumentList()
                            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

UnsignedNumericLiteral

public final void UnsignedNumericLiteral()
                                  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

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

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

TextPredicate

public final void TextPredicate()
                         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

SignedNumericLiteral

public final void SignedNumericLiteral()
                                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

NumericLiteral

public final void NumericLiteral()
                          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(CQLParserTokenManager 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()


Copyright © 1996-2014 Geotools. All Rights Reserved.