public abstract static class Expressions.WrappedExpression extends Object implements Expression
Modifier and Type | Field and Description |
---|---|
protected Expression |
expr |
Constructor and Description |
---|
WrappedExpression() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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
|
int |
hashCode() |
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
|
protected Expression expr
public Tags getTags()
Expression
getTags
in interface Expression
public void setTags(Tags tags)
Expression
setTags
in interface Expression
tags
- Tags to associate with this expressionpublic String getType()
Expression
getType
in interface Expression
public Expression simplify(Env env)
Expression
simplify
in interface Expression
env
- Environment to simplify with respect topublic boolean hasValue()
Expression
hasValue
in interface Expression
public Value evaluate(Env env, Object... args)
Expression
evaluate
in interface Expression