Class ExpressionFactory.AndOperator
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.ExpressionFactory.AndOperator
-
- All Implemented Interfaces:
Expression
- Enclosing class:
- ExpressionFactory
public static class ExpressionFactory.AndOperator extends java.lang.Object implements Expression
"And" logical operator.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Expression>
args
-
Constructor Summary
Constructors Constructor Description AndOperator(java.util.List<Expression> args)
Constructs a newAndOperator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
evaluate(Environment env)
Evaluate this expression.
-
-
-
Field Detail
-
args
private final java.util.List<Expression> args
-
-
Constructor Detail
-
AndOperator
public AndOperator(java.util.List<Expression> args)
Constructs a newAndOperator
.- Parameters:
args
- arguments
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(Environment env)
Description copied from interface:Expression
Evaluate this expression.- Specified by:
evaluate
in 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.
-
-