public abstract class InternalVolatileFunction extends FunctionImpl implements InternalFunction, VolatileFunction
volatile (i.e. explicitly stating evaluation needs to happen for each object in the collection
being traversed) and internal (i.e. are not subject of SPI lookup, such
as anonymous inner classes).functionNameNIL| Constructor and Description |
|---|
InternalVolatileFunction() |
InternalVolatileFunction(String name) |
| Modifier and Type | Method and Description |
|---|---|
InternalFunction |
duplicate(Expression... parameters)
This default implementation just returns
this if the number of expected parameters is
zero, otherwise throws an IllegalArgumentException. |
abstract Object |
evaluate(Object object)
Default implementation simply returns the fallbackValue.
|
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toStringevaluategetFallbackValue, getFunctionName, getName, getParametersaccept, evaluatepublic InternalVolatileFunction()
public InternalVolatileFunction(String name)
public InternalFunction duplicate(Expression... parameters)
this if the number of expected parameters is
zero, otherwise throws an IllegalArgumentException.
A subclass that do expect Expression parameters shall override this method and
return a new instance of the same kind of InternalFunction configured to work against the
given parameters.
duplicate in interface InternalFunctionparameters - the parameters the returned InternalFunction works onInternalFunction.duplicate(org.opengis.filter.expression.Expression[])public abstract Object evaluate(Object object)
FunctionImplPlease override this method to produce a value based on the provided arguments.
evaluate in interface Expressionevaluate in class FunctionImplobject - Object being evaluated; often a FeatureCopyright © 1996–2021 Geotools. All rights reserved.