org.modeshape.graph.query.model
Class Visitors.NavigationVisitor

java.lang.Object
  extended by org.modeshape.graph.query.model.Visitors.NavigationVisitor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
Visitors.WalkAllVisitor
Enclosing class:
Visitors

public abstract static class Visitors.NavigationVisitor
extends Object
implements Visitor

An abstract visitor implementation that performs navigation of the query object.

Subclasses should always implement the visit(T object) methods by performing the following actions:

  1. Call strategy.visit(object);
  2. Add any children of object that are to be visited using enqueue(Visitable)
  3. Call visitNext()


Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.modeshape.graph.query.model.Visitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 



Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.