Class ConstantFunction
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.NullaryFunction
com.singularsys.jep.misc.functions.ConstantFunction
- All Implemented Interfaces:
PostfixMathCommandI
,Serializable
Functions which always return a constant value.
- Author:
- Richard Morris
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.functions.NullaryFunction
instanceOf, run
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
Constructor Details
-
ConstantFunction
- Parameters:
value
- the value returned by the function
-
-
Method Details
-
eval
Description copied from class:NullaryFunction
Evaluate the function- Specified by:
eval
in classNullaryFunction
- Returns:
- value of the function
-
getValue
-