Package com.singularsys.jep.misc.bitwise
Class BitComp
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.UnaryFunction
com.singularsys.jep.misc.bitwise.BitComp
- All Implemented Interfaces:
PostfixMathCommandI
,Serializable
Unary bitwise complement, like the java ~a operator.
Arguments are first converted to ints using Number.intValue giving 32 available bits.
- 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.UnaryFunction
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
-
Constructor Details
-
BitComp
public BitComp()
-
-
Method Details
-
eval
Description copied from class:UnaryFunction
Evaluate the function- Specified by:
eval
in classUnaryFunction
- Parameters:
or
- the single argument passed in- Returns:
- the result of the function
- Throws:
EvaluationException
-