public class LiteralExpression extends Object implements Expression
| Constructor and Description |
|---|
LiteralExpression(Object literal) |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Environment env)
Evaluate this expression.
|
String |
toString() |
public LiteralExpression(Object literal)
public Object evaluate(Environment env)
Expressionevaluate in interface Expressionenv - The environmentList, String or any
primitive type or wrapper classes of a primitive type.