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, paramsNIL| 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, toStringisAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpressionpublic FallbackFunction(String name, List<Expression> params, Literal fallback)
public FallbackFunction(Name name, List<Expression> params, Literal fallback)
public Object evaluate(Object object)
ExpressionAbstractevaluate in interface Expressionevaluate in class FunctionExpressionImplpublic <T> T evaluate(Object object, Class<T> context)
ExpressionAbstractSubclasses 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 Expressionevaluate in class ExpressionAbstractT - 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.