Class LiteralExpression
java.lang.Object
org.openstreetmap.josm.gui.mappaint.mapcss.LiteralExpression
- All Implemented Interfaces:
Expression
Simple literal value, that does not depend on other expressions.
- Since:
- 5705
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Environment env) Evaluate this expression.final ObjectReturns the literal.toString()
-
Field Details
-
literal
-
-
Constructor Details
-
LiteralExpression
Constructs a newLiteralExpression.- Parameters:
literal- literal
-
-
Method Details
-
getLiteral
Returns the literal.- Returns:
- the literal
- Since:
- 14484
-
evaluate
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.
-
toString
-