Class LiteralExpression
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.LiteralExpression
-
- All Implemented Interfaces:
Expression
public class LiteralExpression extends Object implements Expression
Simple literal value, that does not depend on other expressions.- Since:
- 5705
-
-
Constructor Summary
Constructors Constructor Description LiteralExpression(Object literal)
Constructs a newLiteralExpression
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Environment env)
Evaluate this expression.Object
getLiteral()
Returns the literal.String
toString()
-
-
-
Constructor Detail
-
LiteralExpression
public LiteralExpression(Object literal)
Constructs a newLiteralExpression
.- Parameters:
literal
- literal
-
-
Method Detail
-
getLiteral
public final Object getLiteral()
Returns the literal.- Returns:
- the literal
- Since:
- 14484
-
evaluate
public 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.
-
-