public interface Expression
Modifier and Type | Method and Description |
---|---|
Value |
evaluate(Env env,
Object... args)
Evaluates the expression using the specified environment and
arguments.
|
Tags |
getTags()
Returns tags associated with this expression
|
String |
getType()
Returns a string indicating the type of this expression
|
boolean |
hasValue()
Returns whether the expression has already been evaluated to
a Value
|
void |
setTags(Tags tags)
Set the tags associated with this expression
|
Expression |
simplify(Env env)
Simplifies the expression using the specified environment
|
Tags getTags()
void setTags(Tags tags)
tags
- Tags to associate with this expressionString getType()
Expression simplify(Env env)
env
- Environment to simplify with respect toValue evaluate(Env env, Object... args)
env
- args
- boolean hasValue()