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