Package org.geotools.filter.expression
Class InternalVolatileFunction
Object
ExpressionAbstract
FunctionImpl
InternalVolatileFunction
- All Implemented Interfaces:
Expression
,Function
,InternalFunction
,VolatileFunction
public abstract class InternalVolatileFunction
extends FunctionImpl
implements InternalFunction, VolatileFunction
A base class functions (i.e. anonymous inner classes) that are both
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).- Since:
- 9.0
-
Field Summary
Fields inherited from class FunctionImpl
functionName
Fields inherited from interface Expression
NIL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionduplicate
(Expression... parameters) This default implementation just returnsthis
if the number of expected parameters is zero, otherwise throws anIllegalArgumentException
.abstract Object
Default implementation simply returns the fallbackValue.Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
Methods inherited from class ExpressionAbstract
evaluate
Methods inherited from interface Expression
accept, evaluate
Methods inherited from interface Function
getFallbackValue, getFunctionName, getName, getParameters
-
Constructor Details
-
InternalVolatileFunction
public InternalVolatileFunction() -
InternalVolatileFunction
-
-
Method Details
-
duplicate
This default implementation just returnsthis
if the number of expected parameters is zero, otherwise throws anIllegalArgumentException
.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 givenparameters
.- Specified by:
duplicate
in interfaceInternalFunction
- Parameters:
parameters
- the parameters the returned InternalFunction works on- Returns:
- a new instance of the same kind of InternalFunction that works on the given parameters
- See Also:
-
evaluate
Description copied from class:FunctionImpl
Default implementation simply returns the fallbackValue.Please override this method to produce a value based on the provided arguments.
- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionImpl
- Parameters:
object
- Object being evaluated; often a Feature- Returns:
- value for the provided object
-