Class dnx.lr.InstanceSearchTraversal
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.InstanceSearchTraversal
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.lr.Action
|
+----dnx.lr.Traversal
|
+----dnx.lr.InstanceTraversal
|
+----dnx.lr.TraversalPathTraversal
|
+----dnx.lr.InstancePathTraversal
|
+----dnx.lr.InstanceReturningTraversal
|
+----dnx.lr.InstanceSearchTraversal
- public class InstanceSearchTraversal
- extends InstanceReturningTraversal
A traversal that searches for node instances 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
-
-
InstanceSearchTraversal()
-
-
InstanceSearchTraversal(int)
-
-
getInterest()
-
-
isMatch(NodeInstance)
- Don't call this yourself.
-
setInterest(int)
-
-
visit(NodeInstance)
- Don't call this yourself.
FIND_FIRST
public final static int FIND_FIRST
FIND_ALL
public final static int FIND_ALL
InstanceSearchTraversal
public InstanceSearchTraversal()
InstanceSearchTraversal
public InstanceSearchTraversal(int contextInterest)
setInterest
public final void setInterest(int interest)
getInterest
public final int getInterest()
visit
public int visit(NodeInstance inst)
- Don't call this yourself. It's called automatically.
- Overrides:
- visit in class InstanceTraversal
isMatch
public abstract boolean isMatch(NodeInstance inst)
- Don't call this yourself. It's called automatically.
Returns true if the node instance matches the criteria for this search,
false otherwise. Subclasses override this to control how what
instances they want recorded.
All Packages Class Hierarchy This Package Previous Next Index