Package org.geotools.filter.text.commons
Class CompilerUtil
- Object
-
- CompilerUtil
-
public final class CompilerUtil extends Object
Compiler Utility class.This is an internal utility class with convenient methods for compiler actions.
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 Static Methods Concrete Methods Modifier and Type Method Description static Expression
parseExpression(String source, AbstractCompilerFactory compilerFactory, FilterFactory filterFactory)
Parses the expression present on source and make an expression object.static Expression
parseExpression(Language language, String predicate)
Makes Expressions for the predicatestatic Expression
parseExpression(Language language, String predicate, FilterFactory filterFactory)
Makes Expressions for the predicatestatic Filter
parseFilter(String source, AbstractCompilerFactory compilerFactory, FilterFactory filterFactory)
Parses the predicate present on source and makes the filter.static Filter
parseFilter(Language language, String predicate)
Makes the Filter for the predicatestatic Filter
parseFilter(Language language, String predicate, FilterFactory filterFactory)
Returns the filter resultant of the parsing process of predicate expression.static List<Filter>
parseFilterList(String predicateSequence, AbstractCompilerFactory compilerFactory, FilterFactory filterFactory)
Parses the sequence of predicate and makes the filter liststatic List<Filter>
parseFilterList(Language language, String predicate)
Makes a list of filters extracted from the sequence of search predicatesstatic List<Filter>
parseFilterList(Language language, String predicate, FilterFactory filterFactory)
Makes a list of filters extracted from the sequence of search predicates
-
-
-
Method Detail
-
parseFilter
public static final Filter parseFilter(Language language, String predicate, FilterFactory filterFactory) throws CQLException
Returns the filter resultant of the parsing process of predicate expression. Makes Expressions for the predicate- Parameters:
language
- the dialect of languagepredicate
- a valid search predicate for the languagefilterFactory
- a filter factory used to make the expression- Returns:
- an
Filter
- Throws:
CQLException
-
parseFilter
public static final Filter parseFilter(Language language, String predicate) throws CQLException
Makes the Filter for the predicate- Parameters:
language
- the dialect of languagepredicate
- a valid search predicate for the language- Returns:
- a
Filter
- Throws:
CQLException
-
parseExpression
public static final Expression parseExpression(Language language, String predicate, FilterFactory filterFactory) throws CQLException
Makes Expressions for the predicate- Parameters:
language
- the dialect of languagepredicate
- a valid expression for the languagefilterFactory
- a filter factory used to make the expression- Returns:
- an
Expression
- Throws:
CQLException
-
parseExpression
public static final Expression parseExpression(Language language, String predicate) throws CQLException
Makes Expressions for the predicate- Parameters:
language
- the dialect of languagepredicate
- a valid expression for the language- Returns:
- an
Expression
- Throws:
CQLException
-
parseFilterList
public static List<Filter> parseFilterList(Language language, String predicate, FilterFactory filterFactory) throws CQLException
Makes a list of filters extracted from the sequence of search predicates- Parameters:
language
- the dialect of languagepredicate
- a valid expression for the languagefilterFactory
- a filter factory used to make the each filter- Returns:
- a
List
of filters - Throws:
CQLException
-
parseFilterList
public static List<Filter> parseFilterList(Language language, String predicate) throws CQLException
Makes a list of filters extracted from the sequence of search predicates- Parameters:
language
- the dialect of languagepredicate
- a valid expression for the language- Returns:
- a
List
of filters - Throws:
CQLException
-
parseExpression
public static Expression parseExpression(String source, AbstractCompilerFactory compilerFactory, FilterFactory filterFactory) throws CQLException
Parses the expression present on source and make an expression object.- Parameters:
compilerFactory
- a compiler used to parse the sourcefilterFactory
- a filter factory used to make the filter- Returns:
- an
Expression
- Throws:
CQLException
-
parseFilter
public static Filter parseFilter(String source, AbstractCompilerFactory compilerFactory, FilterFactory filterFactory) throws CQLException
Parses the predicate present on source and makes the filter.- Parameters:
source
- a predicatecompilerFactory
- a compiler used to parse the sourcefilterFactory
- a filter factory used to make the filter- Returns:
- a
Filter
- Throws:
CQLException
-
parseFilterList
public static List<Filter> parseFilterList(String predicateSequence, AbstractCompilerFactory compilerFactory, FilterFactory filterFactory) throws CQLException
Parses the sequence of predicate and makes the filter list- Parameters:
predicateSequence
- sequence of predicatescompilerFactory
- a compiler used to parse the sourcefilterFactory
- a filter factory used to make the filter- Returns:
List
ofFilter
- Throws:
CQLException
-
-