public class NumberQ extends AbstractCoreFunctionEvaluator implements java.util.function.Predicate<IExpr>
True, if the given expression is an number object| Modifier and Type | Field and Description |
|---|---|
static NumberQ |
CONST
Constructor for the unary predicate
|
| Constructor and Description |
|---|
NumberQ() |
| Modifier and Type | Method and Description |
|---|---|
IExpr |
evaluate(IAST ast,
EvalEngine engine)
Returns
True if the 1st argument is a number;
False otherwise |
boolean |
test(IExpr expr) |
numericEval, setUppublic static final NumberQ CONST
public IExpr evaluate(IAST ast, EvalEngine engine)
True if the 1st argument is a number;
False otherwiseevaluate in interface IFunctionEvaluatorevaluate in class AbstractCoreFunctionEvaluatorast - the abstract syntax tree (AST) which should be evaluatedengine - the users current evaluation enginenull, if evaluation isn't possibleValidate,
IExpr.head(),
IAST.arg1(),
IAST.arg2(),
IAST.arg3()