Class ConcatenateFunction
- Object
-
- ExpressionAbstract
-
- FunctionImpl
-
- ConcatenateFunction
-
- All Implemented Interfaces:
Expression
,Function
public class ConcatenateFunction extends FunctionImpl
The function concatenates strings.It is used to create concatenated strings as arguments of functions.
Implementation of Concatenate as defined by SE1.1.
- Author:
- Jody Garnett (Refractions Research, Inc.)
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
NAME
Make the instance of FunctionName available in a consistent spot.-
Fields inherited from class FunctionImpl
functionName
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description ConcatenateFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
Default implementation simply returns the fallbackValue.int
getArgCount()
String
getName()
Gets the name of this function.-
Methods inherited from class FunctionImpl
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Field Detail
-
NAME
public static final FunctionName NAME
Make the instance of FunctionName available in a consistent spot.
-
-
Method Detail
-
getName
public String getName()
Description copied from class:FunctionImpl
Gets the name of this function.- Specified by:
getName
in interfaceFunction
- Overrides:
getName
in classFunctionImpl
- Returns:
- the name of the function.
-
getArgCount
public int getArgCount()
-
evaluate
public Object evaluate(Object feature)
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:
feature
- Object being evaluated; often a Feature- Returns:
- value for the provided object
-
-