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 java.lang.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) java.lang.Stringindex(package private) booleanisFirstOrLast(package private) ConditionFactory.Opop
-
Constructor Summary
Constructors Constructor Description IndexCondition(java.lang.String index, ConditionFactory.Op op)Constructs a newIndexCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplies(Environment env)Checks if the condition applies in the given MapCSSEnvironment.
-
-
-
Field Detail
-
index
final java.lang.String index
-
op
final ConditionFactory.Op op
-
isFirstOrLast
final boolean isFirstOrLast
-
-
Constructor Detail
-
IndexCondition
public IndexCondition(java.lang.String index, ConditionFactory.Op op)
Constructs a newIndexCondition.- Parameters:
index- indexop- operation
-
-
Method Detail
-
applies
public boolean applies(Environment env)
Description copied from interface:ConditionChecks if the condition applies in the given MapCSSEnvironment.
-
-