Class Selector.ChildOrParentSelector.MatchingReferrerFinder

java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector.MatchingReferrerFinder
All Implemented Interfaces:
PrimitiveVisitor
Enclosing class:
Selector.ChildOrParentSelector

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.