Class dnx.lr.ClassSearchTraversal
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.ClassSearchTraversal

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.util.DNXInstancedObject
                   |
                   +----dnx.lr.Action
                           |
                           +----dnx.lr.Traversal
                                   |
                                   +----dnx.lr.NodeTraversal
                                           |
                                           +----dnx.lr.NodeReturningTraversal
                                                   |
                                                   +----dnx.lr.NodeSearchTraversal
                                                           |
                                                           +----dnx.lr.ClassSearchTraversal

public class ClassSearchTraversal
extends NodeSearchTraversal
A ClassSearchTraversal looks for and returns nodes of a particular class.

Variable Index

 o allowSubclassMatches

Constructor Index

 o ClassSearchTraversal(Class)
Create a traversal, specifying the class that is looked for.
 o ClassSearchTraversal(Class, int)
Create a traversal, specifying the class that is looked for and the context interest.

Method Index

 o getAllowSubclassMatches()
 o getTarget()
 o isMatch(Node)
Don't call this yourself.
 o setAllowSubclassMatches(boolean)
 o setTarget(Class)
 o setTarget(String)

Variables

 o allowSubclassMatches
  protected boolean allowSubclassMatches

Constructors

 o ClassSearchTraversal
  public ClassSearchTraversal(Class cl)
Create a traversal, specifying the class that is looked for. The context interest is NORMAL_NODES.
 o ClassSearchTraversal
  public ClassSearchTraversal(Class cl,
                              int contextInterest)
Create a traversal, specifying the class that is looked for and the context interest.

Methods

 o setAllowSubclassMatches
  public void setAllowSubclassMatches(boolean allow)
 o getAllowSubclassMatches
  public boolean getAllowSubclassMatches()
 o setTarget
  public void setTarget(Class cl)
 o setTarget
  public void setTarget(String nodeTypeName)
 o getTarget
  public Class getTarget()
 o isMatch
  public boolean isMatch(Node node)
Don't call this yourself.
Overrides:
isMatch in class NodeSearchTraversal

All Packages  Class Hierarchy  This Package  Previous  Next  Index