Class ExpressionFactory.OrOperator
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory.OrOperator
-
- All Implemented Interfaces:
Expression
- Enclosing class:
- ExpressionFactory
public static class ExpressionFactory.OrOperator extends java.lang.Object implements Expression
"Or" logical operator.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Expression>args
-
Constructor Summary
Constructors Constructor Description OrOperator(java.util.List<Expression> args)Constructs a newOrOperator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectevaluate(Environment env)Evaluate this expression.
-
-
-
Field Detail
-
args
private final java.util.List<Expression> args
-
-
Constructor Detail
-
OrOperator
public OrOperator(java.util.List<Expression> args)
Constructs a newOrOperator.- Parameters:
args- arguments
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(Environment env)
Description copied from interface:ExpressionEvaluate this expression.- Specified by:
evaluatein interfaceExpression- Parameters:
env- The environment- Returns:
- the result of the evaluation, can be a
List, String or any primitive type or wrapper classes of a primitive type.
-
-