Class RXBuild.Dom.NodeVisitor
The RXBuild.Dom.NodeVisitor is an abstrcact class that implements the hierarchical visitor pattern in a way suitable for building trees
Defined in: regex_dom_node.js.
Constructor Attributes | Constructor Name and Description |
---|---|
RXBuild.Dom.NodeVisitor(params)
Creates a new instance of 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.Dom.NodeVisitor(params)
Creates a new instance of RXBuild.Dom.NodeVisitor
- Parameters:
- params
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