Class Selector.ChildOrParentSelector.MatchingReferrerFinder
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.Selector.ChildOrParentSelector.MatchingReferrerFinder
- All Implemented Interfaces:
PrimitiveVisitor
- Enclosing class:
- Selector.ChildOrParentSelector
private class Selector.ChildOrParentSelector.MatchingReferrerFinder
extends Object
implements PrimitiveVisitor
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoVisit(IPrimitive parent) private booleanvoidVisiting call for nodes.voidVisiting call for relations.voidVisiting call for ways.
-
Field Details
-
e
-
-
Constructor Details
-
MatchingReferrerFinder
Constructor- Parameters:
e- the environment against which we match
-
-
Method Details
-
visit
Description copied from interface:PrimitiveVisitorVisiting call for nodes.- Specified by:
visitin interfacePrimitiveVisitor- Parameters:
n- The node to inspect.
-
doVisit
-
firstAndLastOnly
-
visit
Description copied from interface:PrimitiveVisitorVisiting call for ways.- Specified by:
visitin interfacePrimitiveVisitor- Parameters:
w- The way to inspect.
-
visit
Description copied from interface:PrimitiveVisitorVisiting call for relations.- Specified by:
visitin interfacePrimitiveVisitor- Parameters:
r- The relation to inspect.
-