public abstract class MinXMLSearcher
extends java.lang.Object
Constructor and Description |
---|
MinXMLSearcher() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
endSearch(MinXML subject,
boolean cutoff)
endSearch is called at the end of the tree-walk of the subject and its children.
|
java.lang.Iterable<MinXML> |
postOrder(MinXML subject) |
java.lang.Iterable<MinXML> |
preOrder(MinXML subject) |
@Nullable MinXML |
search(MinXML subject)
The search method is used to implement basic recursive scans over a tree
of elements.
|
abstract boolean |
startSearch(MinXML subject)
startSearch is called at the start of the tree-walk of the subject and its children.
|
public abstract boolean startSearch(MinXML subject)
subject
- the MinXML element to be visitedpublic abstract boolean endSearch(MinXML subject, boolean cutoff)
subject
- the MinXML element to be visited.cutoff
- flag indicating if any child search was cutoff.public @Nullable MinXML search(MinXML subject)
subject
- the element tree to be searched