public class FallbackFunction extends FunctionExpressionImpl
This can be used to construct expressions that are to be executed by another systems (say as SQL or as a WFS request).
fallback, functionName, name, params
NIL
Constructor and Description |
---|
FallbackFunction(Name name,
List params,
Literal fallback) |
FallbackFunction(String name,
List params,
Literal fallback) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Object object)
Subclass should override, default implementation returns null.
|
Object |
evaluate(Object object,
Class context)
Default implementation delegates handling of context conversion to Converters utility class.
|
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
public Object evaluate(Object object)
ExpressionAbstract
evaluate
in interface Expression
evaluate
in class FunctionExpressionImpl
public Object evaluate(Object object, Class context)
ExpressionAbstract
Subclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification).
evaluate
in interface Expression
evaluate
in class ExpressionAbstract
object
- The object to evaluate the expression against.context
- The type of the resulting value of the expression.context
.Copyright © 1996–2019 Geotools. All rights reserved.