Class FieldRange
- java.lang.Object
-
- com.singularsys.jep.functions.PostfixMathCommand
-
- com.singularsys.jep.functions.BinaryFunction
-
- com.singularsys.extensions.lambda.FieldRange
-
- All Implemented Interfaces:
JepComponent,PostfixMathCommandI,java.io.Serializable
public class FieldRange extends BinaryFunction implements PostfixMathCommandI, JepComponent
A Field aware version of theRangefunction which returns an increasing sequence of all the items between the end points inclusive.[1..10]
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
-
Constructor Summary
Constructors Constructor Description FieldRange(FieldI f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objecteval(java.lang.Object l, java.lang.Object r)JepComponentgetLightWeightInstance()Gets a light-weight instance suitable for using in multiple threads.voidinit(Jep jep)Initialize the component.-
Methods inherited from class com.singularsys.jep.functions.BinaryFunction
instanceOf, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.singularsys.jep.PostfixMathCommandI
checkNumberOfParameters, getName, getNumberOfParameters, run, setCurNumberOfParameters, setName
-
-
-
-
Constructor Detail
-
FieldRange
public FieldRange(FieldI f)
- Parameters:
f- Field to use for calculating sequence
-
-
Method Detail
-
eval
public java.lang.Object eval(java.lang.Object l, java.lang.Object r) throws EvaluationException- Specified by:
evalin classBinaryFunction- Throws:
EvaluationException
-
init
public void init(Jep jep)
Description copied from interface:JepComponentInitialize the component. This methods is called whenever a component is added to Jep. Hence it allows components to keep track of the other components they may rely on.- Specified by:
initin interfaceJepComponent- Parameters:
jep- the current Jep instance
-
getLightWeightInstance
public JepComponent getLightWeightInstance()
Description copied from interface:JepComponentGets a light-weight instance suitable for using in multiple threads.- Specified by:
getLightWeightInstancein interfaceJepComponent- Returns:
- either an new instance, null or 'this'.
-
-