public class SimpleGraphWalker extends Object implements GraphWalker
Constructor and Description |
---|
SimpleGraphWalker(GraphVisitor visitor)
Creates a GraphWalker from a preexising GraphVisitor.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Does nothing.
|
GraphVisitor |
getVistor()
Returns the underlying visitor.
|
void |
setVisitor(GraphVisitor visitor)
Sets the underlying visitor.
|
int |
visit(Graphable element,
GraphTraversal traversal)
Defers to the underlying visitor.
|
public SimpleGraphWalker(GraphVisitor visitor)
visitor
- The visitor to decoratepublic GraphVisitor getVistor()
public void setVisitor(GraphVisitor visitor)
visitor
- The visitor to be decorated by the walker.public int visit(Graphable element, GraphTraversal traversal)
visit
in interface GraphWalker
element
- The component being visited.traversal
- The traversal controlling the sequence of graph component visits.GraphWalker.visit(Graphable, GraphTraversal)
public void finish()
finish
in interface GraphWalker
GraphWalker.finish()
Copyright © 1996–2019 Geotools. All rights reserved.