Class Selector.AbstractSelector
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.Selector.AbstractSelector
-
- All Implemented Interfaces:
Selector
- Direct Known Subclasses:
Selector.GeneralSelector
,Selector.LinkSelector
- Enclosing interface:
- Selector
public abstract static class Selector.AbstractSelector extends java.lang.Object implements Selector
Super class ofSelector.GeneralSelector
andSelector.LinkSelector
.- Since:
- 5841
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Selector
Selector.AbstractSelector, Selector.ChildOrParentSelector, Selector.ChildOrParentSelectorType, Selector.GeneralSelector, Selector.LinkSelector
-
-
Field Summary
Fields Modifier and Type Field Description private Condition[]
conds
-
Fields inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Selector
BASE_ANY, BASE_AREA, BASE_CANVAS, BASE_META, BASE_NODE, BASE_RELATION, BASE_SETTING, BASE_SETTINGS, BASE_WAY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSelector(java.util.List<Condition> conditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Condition>
getConditions()
Returns the list of conditions.boolean
matches(Environment env)
Determines if all conditions match the given environment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Selector
getBase, getRange, getSubpart
-
-
-
-
Constructor Detail
-
AbstractSelector
protected AbstractSelector(java.util.List<Condition> conditions)
-
-
Method Detail
-
matches
public boolean matches(Environment env)
Determines if all conditions match the given environment.
-
getConditions
public java.util.List<Condition> getConditions()
Description copied from interface:Selector
Returns the list of conditions.- Specified by:
getConditions
in interfaceSelector
- Returns:
- the list of conditions
-
-