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.

Variable Index

 o FIND_ALL
 o FIND_FIRST

Constructor Index

 o NodeSearchTraversal()
 o NodeSearchTraversal(int)

Method Index

 o getInterest()
 o isMatch(Node)
Don't call this yourself.
 o setInterest(int)
 o visit(Node)
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 NodeSearchTraversal
  public NodeSearchTraversal()
 o NodeSearchTraversal
  public NodeSearchTraversal(int contextInterest)

Methods

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