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).functionName
NIL
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, toString
evaluate
getFallbackValue, getFunctionName, getName, getParameters
accept, evaluate
public 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 InternalFunction
parameters
- the parameters the returned InternalFunction works onInternalFunction.duplicate(org.opengis.filter.expression.Expression[])
public abstract Object evaluate(Object object)
FunctionImpl
Please override this method to produce a value based on the provided arguments.
evaluate
in interface Expression
evaluate
in class FunctionImpl
object
- Object being evaluated; often a FeatureCopyright © 1996–2023 Geotools. All rights reserved.