com.sodius.mdw.core.eval.debug
Interface DebugNode

All Known Subinterfaces:
ConnectorNode, ProjectElementNode, RuleNode, ScriptNode, TextTemplateNode

public interface DebugNode

A node of the debug hierarchy tree. A node describes an evaluated element : template, rule or script.

This interface is not intended to be implemented by clients.

See Also:
DebugHierarchy.getRootNodes()

Method Summary
 List<DebugNode> getChildren()
          Returns the list of child nodes, ordered the way the corresponding elements were evaluated.
 DebugValue getFailure()
          Returns a description of the evaluation exception.
 DebugHierarchy getHierarchy()
          Returns the containing debug hierarchy.
 DebugNode getParent()
          Returns the parent node.
 boolean isFailed()
          Returns true if the evaluation of the underlying element threw an exception.
 boolean isLeaf()
          Returns true if this node has no child.
 boolean isRoot()
          Returns true if this is a top-level node (no parent).
 

Method Detail

getHierarchy

DebugHierarchy getHierarchy()
Returns the containing debug hierarchy.

Returns:
the containing debug hierarchy.

isRoot

boolean isRoot()
Returns true if this is a top-level node (no parent).

Returns:
true if this is a top-level node (no parent), false otherwise.

getParent

DebugNode getParent()
Returns the parent node.

Returns:
the parent node, null if this is a root node.

isLeaf

boolean isLeaf()
Returns true if this node has no child.

Returns:
true if this node has no child, false otherwise.

getChildren

List<DebugNode> getChildren()
Returns the list of child nodes, ordered the way the corresponding elements were evaluated.

Returns:
an unmodifiable list of DebugNode.

isFailed

boolean isFailed()
Returns true if the evaluation of the underlying element threw an exception.

Returns:
true if the evaluation of the underlying element threw an exception, false otherwise.
See Also:
getFailure()

getFailure

DebugValue getFailure()
Returns a description of the evaluation exception.

Returns:
a description of the evaluation exception, null if no exception thrown.