public abstract class MinXMLWalker
extends java.lang.Object
| Constructor and Description |
|---|
MinXMLWalker() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
endWalk(MinXML subject)
endWalk is called at the end of the tree-walk of the subject and its children.
|
java.lang.Iterable<MinXML> |
postOrder(@NonNull MinXML subject) |
java.lang.Iterable<MinXML> |
preOrder(@NonNull MinXML subject) |
abstract void |
startWalk(MinXML subject)
startWalk is called at the start of the tree-walk of the subject and its children.
|
MinXMLWalker |
walk(MinXML subject)
The walk method is used to implement a depth-first, left-to-right recursive
scan over a tree.
|
public abstract void startWalk(MinXML subject)
subject - the MinXML element to be visitedpublic abstract void endWalk(MinXML subject)
subject - the MinXML element to be visitedpublic MinXMLWalker walk(MinXML subject)
subject - the element tree to be walked