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.

Variable Index

 o FIND_ALL
 o FIND_FIRST

Constructor Index

 o InstanceSearchTraversal()
 o InstanceSearchTraversal(int)

Method Index

 o getInterest()
 o isMatch(NodeInstance)
Don't call this yourself.
 o setInterest(int)
 o visit(NodeInstance)
Don't call this yourself.

Variables

 o FIND_FIRST
  public final static int FIND_FIRST
 o FIND_ALL
  public final static int FIND_ALL

Constructors

 o InstanceSearchTraversal
  public InstanceSearchTraversal()
 o InstanceSearchTraversal
  public InstanceSearchTraversal(int contextInterest)

Methods

 o setInterest
  public final void setInterest(int interest)
 o getInterest
  public final int getInterest()
 o visit
  public int visit(NodeInstance inst)
Don't call this yourself. It's called automatically.
Overrides:
visit in class InstanceTraversal
 o 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