Package com.singularsys.jep.functions
Class Logical
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.BinaryFunction
com.singularsys.jep.functions.Logical
- All Implemented Interfaces:
PostfixMathCommandI,Serializable
Logical operators
AND and OR. No longer used by default after having added
LazyLogical in Jep 3.1.0.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final intstatic final intFields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.singularsys.jep.functions.BinaryFunction
instanceOf, instanceOf, runMethods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
Field Details
-
AND
public static final int AND- See Also:
-
OR
public static final int OR- See Also:
-
allowNumbers
protected boolean allowNumbers
-
-
Constructor Details
-
Logical
public Logical(int id_in) Standard constructor, allows Boolean and Number arguments- Parameters:
id_in- either of the constantsANDorOR.
-
Logical
public Logical(int id, boolean disallowNumbers) Constructor which restricts type of arguments.- Parameters:
id- either of the constantsANDorOR.disallowNumbers- if true Number arguments will raise exceptions, otherwise they are treated like the Standard constructor.
-
-
Method Details
-
eval
- Specified by:
evalin classBinaryFunction- Throws:
EvaluationException
-