NodeElementVisitor that does a depth-first traversal of the element. Depth first means the visit starts at the
element and goes deeper and deeper in each child element until there are no children and then backtracks, doing the same thing for each
children in each child element.
This class is an abstract class and provides empty methods that sub-classes can override as needed. The visit methods in this class are
called in this order for each element visited by this visitor:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | visit(NodeElement
the element to be visited element)Implements net. |
| protected void | visitAttributes(NodeElement
the element element, List<NodeAttribute> the attributes attributes)Visits the attributes of the element. |
| protected void |
| AbstractDepthFirstVisitor | back to summary |
|---|---|
| public AbstractDepthFirstVisitor() | |
| doDfs | back to summary |
|---|---|
| private void doDfs(NodeElement element) | |
| endAttributes | back to summary |
|---|---|
| protected void endAttributes(NodeElement element) Finish visiting attributes of the element. Override as needed
| |
| endChildren | back to summary |
|---|---|
| protected void endChildren(NodeElement element) Finish visiting children of the element. Override as needed
| |
| endElement | back to summary |
|---|---|
| protected void endElement(NodeElement element) Finish visiting the element. Override as needed
| |
| startAttributes | back to summary |
|---|---|
| protected void startAttributes(NodeElement element) Starts visiting the attributes of the element. Override as needed
| |
| startChildren | back to summary |
|---|---|
| protected void startChildren(NodeElement element) Starts visiting children of the element. Override as needed
| |
| startElement | back to summary |
|---|---|
| protected void startElement(NodeElement element) Starts visiting an element. Override as needed
| |
| visit | back to summary |
|---|---|
| public void visit(NodeElement element) Implements net. Doc from net. Visit the element
| |
| visitAttributes | back to summary |
|---|---|
| protected void visitAttributes(NodeElement element, List<NodeAttribute> attributes) Visits the attributes of the element. Override as needed
| |
| visitElement | back to summary |
|---|---|
| protected void visitElement(NodeElement element) Visits the element. Override as needed
| |