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
functionNameFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionduplicate(Expression... parameters) This default implementation just returnsthisif the number of expected parameters is zero, otherwise throws anIllegalArgumentException.abstract ObjectDefault implementation simply returns the fallbackValue.Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toStringMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
accept, evaluateMethods inherited from interface Function
getFallbackValue, getFunctionName, getName, getParameters
-
Constructor Details
-
InternalVolatileFunction
public InternalVolatileFunction() -
InternalVolatileFunction
-
-
Method Details
-
duplicate
This default implementation just returnsthisif the number of expected parameters is zero, otherwise throws anIllegalArgumentException.A subclass that do expect
Expressionparameters shall override this method and return a new instance of the same kind of InternalFunction configured to work against the givenparameters.- Specified by:
duplicatein 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:FunctionImplDefault implementation simply returns the fallbackValue.Please override this method to produce a value based on the provided arguments.
- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionImpl- Parameters:
object- Object being evaluated; often a Feature- Returns:
- value for the provided object
-