public class AtomQ extends AbstractCoreFunctionEvaluator implements java.util.function.Predicate<IExpr>
True
, if the given expression is an atomic object (i.e. no AST instance)
See the online Symja function reference: AtomQ
Modifier and Type | Field and Description |
---|---|
static AtomQ |
CONST
Constructor for the unary predicate
|
Constructor and Description |
---|
AtomQ() |
Modifier and Type | Method and Description |
---|---|
IExpr |
evaluate(IAST ast,
EvalEngine engine)
Returns
True if the 1st argument is an atomic object; False otherwise |
void |
setUp(ISymbol symbol)
Evaluate built-in rules and define Attributes for a function.
|
boolean |
test(IExpr obj) |
numericEval
public static final AtomQ CONST
public IExpr evaluate(IAST ast, EvalEngine engine)
True
if the 1st argument is an atomic object; 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()
public void setUp(ISymbol symbol)
AbstractCoreFunctionEvaluator
setUp
in interface IEvaluator
setUp
in class AbstractCoreFunctionEvaluator
symbol
- the symbol which should be set up