Constructor and Description |
---|
CQLJsonCompiler(String cqlSource,
FilterFactory2 filterFactory)
new instance of CQL Compiler
|
Modifier and Type | Method and Description |
---|---|
void |
compileExpression()
Is this needed for CQL-JSON?
|
void |
compileFilter()
Compiles Filter from predicates source json
|
void |
compileFilterList()
Is this needed for CQL-JSON?
|
Filter |
convertToFilter(JsonNode cql2Expression)
Converts JSON Node into GT Filter
|
Expression |
getExpression()
Is this needed for CQL-JSON?
|
Filter |
getFilter()
Get compiled filter
|
List<Filter> |
getFilterList()
Is this needed for CQL-JSON?
|
String |
getSource() |
IToken |
getTokenInPosition(int position)
Is this needed for CQL-JSON?
|
public CQLJsonCompiler(String cqlSource, FilterFactory2 filterFactory)
public String getSource()
public void compileFilter() throws CQLException
compileFilter
in interface ICompiler
CQLException
- If there is an issue Parsing the predicatespublic Filter getFilter() throws CQLException
getFilter
in interface ICompiler
CQLException
ICompiler.compileFilter()
public void compileExpression() throws CQLException
compileExpression
in interface ICompiler
CQLException
public Expression getExpression() throws CQLException
getExpression
in interface ICompiler
CQLException
ICompiler.compileExpression()
public void compileFilterList() throws CQLException
compileFilterList
in interface ICompiler
CQLException
public List<Filter> getFilterList() throws CQLException
getFilterList
in interface ICompiler
CQLException
ICompiler.compileFilterList()
public IToken getTokenInPosition(int position)
getTokenInPosition
in interface ICompiler
CQLException
public Filter convertToFilter(JsonNode cql2Expression) throws CQLException, IOException, ParseException
cql2Expression
- JSON Node parsed from source textCQLException
- Typically messages about unsupported CQL-JSON featuresIOException
- IO IssuesParseException
- JSON Parsing IssuesCopyright © 1996–2023 Geotools. All rights reserved.