public class AllNodesVisitor extends AbstractVisitor
Modifier and Type | Field and Description |
---|---|
java.util.Collection<Node> |
nodes
The resulting nodes collected so far.
|
Constructor and Description |
---|
AllNodesVisitor() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<Node> |
getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
Replies all nodes contained by the given primitives
|
void |
visit(Node n)
Nodes have only itself as nodes.
|
void |
visit(Relation e)
Relations may have any number of nodes.
|
void |
visit(Way w)
Ways have their way nodes.
|
visit
public AllNodesVisitor()
public void visit(Node n)
n
- The node to inspect.public void visit(Relation e)
e
- The relation to inspect.public static java.util.Collection<Node> getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
osms
- The OSM primitives to inspect