Package org.geotools.filter.visitor
Class ExpressionTypeVisitor
Object
ExpressionTypeVisitor
- All Implemented Interfaces:
ExpressionVisitor
Returns the output type of the visited expression, taking into account functions output types, property types, and
general promotion rules in arithmetic expressions
- Author:
- Andrea Aime - GeoSolutions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisit
(NilExpression expression, Object extraData) Used to visit a Expression.NIL, also called fornull
where an expression is expected.visit
(PropertyName expression, Object extraData) protected Class<?>
visitBinaryExpression
(BinaryExpression expression) protected Object
visitIfThenElse
(FilterFunction_if_then_else expression) Special case for the if then else function, which stores parameters in the second and third list items
-
Constructor Details
-
ExpressionTypeVisitor
-
-
Method Details
-
visit
Description copied from interface:ExpressionVisitor
Used to visit a Expression.NIL, also called fornull
where an expression is expected.This is particularly useful when doing data transformations, as an example when using a StyleSymbolizer Expression.NIL can be used to represent the default stroke color.
- Specified by:
visit
in interfaceExpressionVisitor
- Returns:
- implementation specific
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visitBinaryExpression
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visitIfThenElse
Special case for the if then else function, which stores parameters in the second and third list items- Parameters:
expression
- IfThenElse function- Returns:
- The common ancestor type of the two parameters possibly returned by if then else
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-
visit
- Specified by:
visit
in interfaceExpressionVisitor
-