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<Expression> params,
Literal fallback) |
FallbackFunction(String name,
List<Expression> params,
Literal fallback) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Object object)
Subclass should override, default implementation returns null.
|
<T> T |
evaluate(Object object,
Class<T> 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 FallbackFunction(String name, List<Expression> params, Literal fallback)
public FallbackFunction(Name name, List<Expression> params, Literal fallback)
public Object evaluate(Object object)
ExpressionAbstract
evaluate
in interface Expression
evaluate
in class FunctionExpressionImpl
public <T> T evaluate(Object object, Class<T> 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
T
- The type of the returned object.object
- The object to evaluate the expression against.context
- The type of the resulting value of the expression.context
.Copyright © 1996–2021 Geotools. All rights reserved.