public class NullWrappedBinary extends BinaryFunction implements NullWrappedFunctionI
null OP any
and any OP null
both return null
otherwise the same value as the original is returned.BinaryFunction
,
Serialized FormcurNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
NullWrappedBinary(BinaryFunction fun) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(java.lang.Object l,
java.lang.Object r) |
PostfixMathCommandI |
getRoot()
Get to function which this function wraps.
|
void |
setName(java.lang.String name)
Sets the name of the function used for error messages
|
run
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, toString, toString
public NullWrappedBinary(BinaryFunction fun)
fun
- public PostfixMathCommandI getRoot()
NullWrappedFunctionI
getRoot
in interface NullWrappedFunctionI
public void setName(java.lang.String name)
PostfixMathCommandI
setName
in interface PostfixMathCommandI
setName
in class PostfixMathCommand
name
- the function namepublic java.lang.Object eval(java.lang.Object l, java.lang.Object r) throws EvaluationException
eval
in class BinaryFunction
EvaluationException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep