org.geotools.filter.text.commons
Interface ICompiler

All Known Implementing Classes:
CQLCompiler, 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
 void compileExpression()
          Compiles the source string to produce an Expression.
 void compileFilter()
          Compiles the source string to produce a Filter.
 void compileFilterList()
          Compiles the source string to produce a List of Filter.
 org.opengis.filter.expression.Expression getExpression()
          The resultant Expression of the compilation.
 org.opengis.filter.Filter getFilter()
          The resultant filter of the compilation
 java.util.List<org.opengis.filter.Filter> getFilterList()
          Return the compilation result.
 java.lang.String getSource()
           
 IToken getTokenInPosition(int position)
          Return the token presents in the position specified.
 

Method Detail

getSource

java.lang.String getSource()
Returns:
the compilation source

compileFilter

void compileFilter()
                   throws CQLException
Compiles the source string to produce a Filter. The filter result must be retrieved with getFilter().

Throws:
CQLException

getFilter

org.opengis.filter.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 an Expression. The resultant expression must be retrieved with getExpression().

Throws:
CQLException

getExpression

org.opengis.filter.expression.Expression getExpression()
                                                       throws CQLException
The resultant Expression of the compilation.

Returns:
Expression
Throws:
CQLException
See Also:
compileExpression()

compileFilterList

void compileFilterList()
                       throws CQLException
Compiles the source string to produce a List of Filter. The result must be retrieved with getFilterList()().

Throws:
CQLException

getFilterList

java.util.List<org.opengis.filter.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.

Parameters:
position -
Returns:
IToken


Copyright © 1996-2010 Geotools. All Rights Reserved.