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
Modifier and TypeFieldDescriptionprotected boolean
static final int
static final int
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.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
-
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 constantsAND
orOR
.
-
Logical
public Logical(int id, boolean disallowNumbers) Constructor which restricts type of arguments.- Parameters:
id
- either of the constantsAND
orOR
.disallowNumbers
- if true Number arguments will raise exceptions, otherwise they are treated like the Standard constructor.
-
-
Method Details
-
eval
- Specified by:
eval
in classBinaryFunction
- Throws:
EvaluationException
-