Class dnx.lr.NodeSearchTraversal
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.NodeSearchTraversal
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.lr.Action
|
+----dnx.lr.Traversal
|
+----dnx.lr.NodeTraversal
|
+----dnx.lr.NodeReturningTraversal
|
+----dnx.lr.NodeSearchTraversal
- public class NodeSearchTraversal
- extends NodeReturningTraversal
A traversal that searches for nodes matching a specified criterion.
(The criterion is specified by overriding the isMatch() method.)
This always does a COMPLETE_LEAF_TRAVERSAL, hitting all group,
leaf, and subsidiary nodes. The default context interest is NORMAL_NODES;
i.e. don't look into prototypes and inlines.
-
FIND_ALL
-
-
FIND_FIRST
-
-
NodeSearchTraversal()
-
-
NodeSearchTraversal(int)
-
-
getInterest()
-
-
isMatch(Node)
- Don't call this yourself.
-
setInterest(int)
-
-
visit(Node)
- Don't call this yourself.
FIND_FIRST
public final static int FIND_FIRST
FIND_ALL
public final static int FIND_ALL
NodeSearchTraversal
public NodeSearchTraversal()
NodeSearchTraversal
public NodeSearchTraversal(int contextInterest)
setInterest
public final void setInterest(int interest)
getInterest
public final int getInterest()
visit
public int visit(Node node)
- Don't call this yourself. It's called automatically.
- Overrides:
- visit in class NodeTraversal
isMatch
public abstract boolean isMatch(Node node)
- Don't call this yourself. It's called automatically.
Returns true if the node matches the criteria for this search,
false otherwise. Subclasses override this to control how what
nodes they want recorded.
All Packages Class Hierarchy This Package Previous Next Index