Interface Expression
-
- All Known Implementing Classes:
ExpressionFactory.AndOperator
,ExpressionFactory.CondOperator
,ExpressionFactory.IsInsideFunction
,ExpressionFactory.LengthFunction
,ExpressionFactory.MinMaxFunction
,ExpressionFactory.NullExpression
,ExpressionFactory.OrOperator
,LiteralExpression
,PlaceholderExpression
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Expression
A MapCSS Expression. Can be evaluated in a certainEnvironment
. Usually takes parameters, that are also Expressions and have to be evaluated first.- Since:
- 3848 (creation), 10600 (functional interface)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
evaluate(Environment env)
Evaluate this expression.
-
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(Environment env)
Evaluate this expression.- 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.
-
-