Class ConditionFactory.ExpressionCondition
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ConditionFactory.ExpressionCondition
-
- All Implemented Interfaces:
Condition
- Enclosing class:
- ConditionFactory
public static class ConditionFactory.ExpressionCondition extends java.lang.Object implements Condition
A condition that is fulfilled whenever the expression is evaluated to be true.
-
-
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) Expression
e
-
Constructor Summary
Constructors Constructor Description ExpressionCondition(Expression e)
Constructs a newExpressionFactory
-
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
.Expression
getExpression()
Returns the expression.java.lang.String
toString()
-
-
-
Field Detail
-
e
final Expression e
-
-
Constructor Detail
-
ExpressionCondition
public ExpressionCondition(Expression e)
Constructs a newExpressionFactory
- Parameters:
e
- expression
-
-
Method Detail
-
getExpression
public final Expression getExpression()
Returns the expression.- Returns:
- the expression
- Since:
- 14484
-
applies
public boolean applies(Environment env)
Description copied from interface:Condition
Checks if the condition applies in the given MapCSSEnvironment
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-