Class ConditionFactory.IndexCondition
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.IndexCondition
-
- All Implemented Interfaces:
Condition
- Enclosing class:
- ConditionFactory
public static class ConditionFactory.IndexCondition extends Object implements Condition
Index condition.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Condition
Condition.Context, Condition.TagCondition
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String
index
(package private) boolean
isFirstOrLast
(package private) ConditionFactory.Op
op
-
Constructor Summary
Constructors Constructor Description IndexCondition(String index, ConditionFactory.Op op)
Constructs a newIndexCondition
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applies(Environment env)
Checks if the condition applies in the given MapCSSEnvironment
.
-
-
-
Field Detail
-
op
final ConditionFactory.Op op
-
isFirstOrLast
final boolean isFirstOrLast
-
-
Constructor Detail
-
IndexCondition
public IndexCondition(String index, ConditionFactory.Op op)
Constructs a newIndexCondition
.- Parameters:
index
- indexop
- operation
-
-
Method Detail
-
applies
public boolean applies(Environment env)
Description copied from interface:Condition
Checks if the condition applies in the given MapCSSEnvironment
.
-
-