public class NumberQ extends AbstractCoreFunctionEvaluator implements java.util.function.Predicate<IExpr>
True
, if the given expression is an number objectModifier 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, setUp
public static final NumberQ CONST
public IExpr evaluate(IAST ast, EvalEngine engine)
True
if the 1st argument is a number;
False
otherwiseevaluate
in interface IFunctionEvaluator
evaluate
in class AbstractCoreFunctionEvaluator
ast
- 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()