Class RXBuild.UI.HtmlExplanationTreeBuilder
Extends
RXBuild.Dom.NodeVisitor.
The RXBuild.UI.HtmlExplanationTreeBuilder visits the DOM of the parsed regexp to build a corresponding YUI tree
Defined in: ui_regex_viewer_explain_tree.js.
Constructor Attributes | Constructor Name and Description |
---|---|
RXBuild.UI.HtmlExplanationTreeBuilder(parentNode)
Creates a new instance of RXBuild.UI.HtmlExplanationTreeBuilder (which inherits RXBuild.Dom.NodeVisitor)
|
Method Attributes | Method Name and Description |
---|---|
visit(leafNode)
Called when visiting a leaf node
|
|
visitEnter(compositeNode)
Called when visiting a parent node
|
|
visitLeave(compositeNode)
Called when finished visiting a parent node
|
Class Detail
RXBuild.UI.HtmlExplanationTreeBuilder(parentNode)
Creates a new instance of RXBuild.UI.HtmlExplanationTreeBuilder (which inherits RXBuild.Dom.NodeVisitor)
- Parameters:
- parentNode
Method Detail
{Boolean}
visit(leafNode)
Called when visiting a leaf node
- Parameters:
- {RXBuild.Dom.Node} leafNode
- The node being visited
- Returns:
- {Boolean} Return true to continue visit
{Boolean}
visitEnter(compositeNode)
Called when visiting a parent node
- Parameters:
- {RXBuild.Dom.Node} compositeNode
- The node being visited
- Returns:
- {Boolean} Return true to visit children on this node
{Boolean}
visitLeave(compositeNode)
Called when finished visiting a parent node
- Parameters:
- {RXBuild.Dom.Node} compositeNode
- The node that completed visit
- Returns:
- {Boolean} Return true to continue the visit after the compositeNode