An Evaluation is and object that holds a node being evaluated
and the source from which that node will take extract its
value. It refers to child evaluations that occur as
a result of the nodes' evaluation.
Constructor Summary
public
Evaluation(SimpleNode node, Object source) Constructs a new "get" Evaluation from the node and source given.
public
Evaluation(SimpleNode node, Object source, boolean setOperation) Constructs a new Evaluation from the node and source given.
Method Summary
public void
addChild(Evaluation child) Adds a child to the list of children of this evaluation.
Adds a child to the list of children of this evaluation. The
parent of the child is set to the receiver and the children
references are modified in the receiver to reflect the new child.
The lastChild of the receiver is set to the child, and the
firstChild is set also if child is the first (or only) child.
Sets the exception that occurred as a result of evaluating the
Evaluation. This method is normally only used interally and
should not be set without knowledge of what you are doing.
Sets the node of the evaluation. Normally applications do not need to
set this. Notable exceptions to this rule are custom evaluators that
choose between navigable objects (as in a multi-root evaluator where
the navigable node is chosen at runtime).
Sets the source of the evaluation. Normally applications do not need to
set this. Notable exceptions to this rule are custom evaluators that
choose between navigable objects (as in a multi-root evaluator where
the navigable node is chosen at runtime).
Produces a String value for the Evaluation. If compact is
true then a more compact form of the description only including
the node type and unique identifier is shown, else a full
description including source and result are shown. If showChildren
is true the child evaluations are printed using the depth string
given as a prefix.
Produces a String value for the Evaluation. If compact is
true then a more compact form of the description only including
the node type and unique identifier is shown, else a full
description including source and result are shown. Child
evaluations are printed using the depth string given as a prefix.