public abstract static class Expressions.TypedExpression extends Object implements Expression, Serializable
Constructor and Description |
---|
TypedExpression(String typename,
String... tags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
evaluate
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