Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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()`

Field Summary
`protected Visitor` | `strategy`

Constructor Summary
`protected` | `Visitors.NavigationVisitor(Visitor strategy)` Create a visitor that walks all query objects.

Method Summary
`protected void` | `enqueue(Iterable<? extends Visitable> objectsToBeVisited)`
`protected void` | `enqueue(Visitable objectToBeVisited)`
`protected void` | `visitNext()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, 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, visit, visit`

Field Detail

### strategy

    protected final Visitor strategy

Constructor Detail

### Visitors.NavigationVisitor

    protected Visitors.NavigationVisitor(Visitor strategy)

  Create a visitor that walks all query objects.

  Parameters:
    `strategy` - the visitor that should be called at every node.

Method Detail

### enqueue

    protected void enqueue(Visitable objectToBeVisited)

### enqueue

    protected void enqueue(Iterable<? extends Visitable> objectsToBeVisited)

### visitNext

    protected final void visitNext()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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