private class Selector.ChildOrParentSelector.MatchingReferrerFinder extends AbstractVisitor
Finds the first referrer matching Selector.ChildOrParentSelector.left
The visitor works on an environment and it saves the matching
referrer in e.parent
and its relative position in the
list referrers "child list" in e.index
.
If after execution e.parent
is null, no matching
referrer was found.
Modifier and Type | Field and Description |
---|---|
private Environment |
e |
Constructor and Description |
---|
MatchingReferrerFinder(Environment e)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
visit(Node n)
Visiting call for points.
|
void |
visit(Relation r)
Visiting call for relations.
|
void |
visit(Way w)
Visiting call for lines.
|
visit
private Environment e
MatchingReferrerFinder(Environment e)
e
- the environment against which we match