Package org.geotools.filter.text.cqljson
Class CQLJsonCompiler
- Object
-
- CQLJsonCompiler
-
-
Constructor Summary
Constructors Constructor Description CQLJsonCompiler(String cqlSource, FilterFactory filterFactory)
new instance of CQL Compiler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compileExpression()
Is this needed for CQL-JSON?void
compileFilter()
Compiles Filter from predicates source jsonvoid
compileFilterList()
Is this needed for CQL-JSON?Filter
convertToFilter(JsonNode cql2Expression)
Converts JSON Node into GT FilterExpression
getExpression()
Is this needed for CQL-JSON?Filter
getFilter()
Get compiled filterList<Filter>
getFilterList()
Is this needed for CQL-JSON?String
getSource()
IToken
getTokenInPosition(int position)
Is this needed for CQL-JSON?
-
-
-
Constructor Detail
-
CQLJsonCompiler
public CQLJsonCompiler(String cqlSource, FilterFactory filterFactory)
new instance of CQL Compiler
-
-
Method Detail
-
getSource
public String getSource()
-
compileFilter
public void compileFilter() throws CQLException
Compiles Filter from predicates source json- Specified by:
compileFilter
in interfaceICompiler
- Throws:
CQLException
- If there is an issue Parsing the predicates
-
getFilter
public Filter getFilter() throws CQLException
Get compiled filter- Specified by:
getFilter
in interfaceICompiler
- Returns:
- Filter
- Throws:
CQLException
- See Also:
ICompiler.compileFilter()
-
compileExpression
public void compileExpression() throws CQLException
Is this needed for CQL-JSON?- Specified by:
compileExpression
in interfaceICompiler
- Throws:
CQLException
-
getExpression
public Expression getExpression() throws CQLException
Is this needed for CQL-JSON?- Specified by:
getExpression
in interfaceICompiler
- Returns:
- Expression
- Throws:
CQLException
- See Also:
ICompiler.compileExpression()
-
compileFilterList
public void compileFilterList() throws CQLException
Is this needed for CQL-JSON?- Specified by:
compileFilterList
in interfaceICompiler
- Throws:
CQLException
-
getFilterList
public List<Filter> getFilterList() throws CQLException
Is this needed for CQL-JSON?- Specified by:
getFilterList
in interfaceICompiler
- Returns:
- List
- Throws:
CQLException
- See Also:
ICompiler.compileFilterList()
-
getTokenInPosition
public IToken getTokenInPosition(int position)
Is this needed for CQL-JSON?- Specified by:
getTokenInPosition
in interfaceICompiler
- Returns:
- IToken
- Throws:
CQLException
-
convertToFilter
public Filter convertToFilter(JsonNode cql2Expression) throws CQLException, IOException, ParseException
Converts JSON Node into GT Filter- Parameters:
cql2Expression
- JSON Node parsed from source text- Returns:
- GeoTools Filter
- Throws:
CQLException
- Typically messages about unsupported CQL-JSON featuresIOException
- IO IssuesParseException
- JSON Parsing Issues
-
-