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)
Module:
modules/library/cql (gt-cql.jar)

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.
 Expression getExpression()
          The resultant Expression of the compilation.
 Filter getFilter()
          The resultant filter of the compilation
 List<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 a Filter. The filter result must be retrieved with getFilter().

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

Throws:
CQLException

getExpression

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

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.

Parameters:
position -
Returns:
IToken


Copyright © 1996-2010 Geotools. All Rights Reserved.