Package org.geotools.filter.text.commons
Interface ICompiler
-
- All Known Implementing Classes:
CQL2Compiler
,CQLCompiler
,CQLJsonCompiler
,ECQLCompiler
public interface ICompiler
This interface presents the methods which will be implemented by the different compiles.Warning: This component is not published. It is part of module implementation. Client module should not use this feature.
- Since:
- 2.6
- Author:
- Mauricio Pazos (Axios Engineering)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
compileExpression()
Compiles the source string to produce anExpression
.void
compileFilter()
Compiles the source string to produce aFilter
.void
compileFilterList()
Expression
getExpression()
The resultantExpression
of the compilation.Filter
getFilter()
The resultant filter of the compilationList<Filter>
getFilterList()
Return the compilation result.String
getSource()
IToken
getTokenInPosition(int position)
Return the token presents in the position specified.
-
-
-
Method Detail
-
getSource
String getSource()
- Returns:
- the compilation source
-
compileFilter
void compileFilter() throws CQLException
Compiles the source string to produce aFilter
. The filter result must be retrieved withgetFilter()
.- Throws:
CQLException
-
getFilter
Filter getFilter() throws CQLException
The resultant filter of the compilation- Returns:
- Filter
- Throws:
CQLException
- See Also:
compileFilter()
-
compileExpression
void compileExpression() throws CQLException
Compiles the source string to produce anExpression
. The resultant expression must be retrieved withgetExpression()
.- Throws:
CQLException
-
getExpression
Expression getExpression() throws CQLException
The resultantExpression
of the compilation.- Returns:
- Expression
- Throws:
CQLException
- See Also:
compileExpression()
-
compileFilterList
void compileFilterList() throws CQLException
Compiles the source string to produce aList
ofFilter
. The result must be retrieved with {@link #getFilterList()()}.- Throws:
CQLException
-
getFilterList
List<Filter> getFilterList() throws CQLException
Return the compilation result.- Returns:
- List
- Throws:
CQLException
- See Also:
compileFilterList()
-
getTokenInPosition
IToken getTokenInPosition(int position)
Return the token presents in the position specified.- Returns:
- IToken
-
-