public class Logical extends BinaryFunction
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowNumbers |
static int |
AND |
static int |
OR |
curNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
Logical(int id_in)
Standard constructor, allows Boolean and Number arguments
|
Logical(int id,
boolean disallowNumbers)
Constructor which restricts type of arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(java.lang.Object l,
java.lang.Object r) |
run
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
public static final int AND
public static final int OR
protected boolean allowNumbers
public Logical(int id_in)
id_in
- either of the constants AND or ORpublic Logical(int id, boolean disallowNumbers)
id
- either of the constants AND or ORdisallowNumbers
- if true Number arguments will raise exceptions, otherwise as thee Standard constructor.public 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