public abstract static class Expressions.WrappedExpression extends java.lang.Object implements Expression
Modifier and Type | Field and Description |
---|---|
protected Expression |
expr |
Constructor and Description |
---|
WrappedExpression() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Value |
evaluate(Env env,
java.lang.Object... args)
Evaluates the expression using the specified environment and
arguments.
|
Tags |
getTags()
Returns tags associated with this expression.
|
java.lang.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 java.lang.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, java.lang.Object... args)
Expression
evaluate
in interface Expression
env
- Environmentargs
- Argumentspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object