T - public static class Expressions.SimpleValue<T> extends Expressions.TypedExpression implements Value<T>
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleValue(String typename,
T value,
String... tags) |
| 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.
|
T |
get()
The Java object representing the value of the expression.
|
int |
hashCode() |
boolean |
hasValue()
Returns whether the expression has already been evaluated to
a Value
|
String |
toString() |
getTags, getType, setTags, simplifyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTags, getType, setTags, simplifypublic T get()
Valuepublic Value evaluate(Env env, Object... args)
Expressionevaluate in interface Expressionenv - Environmentargs - Argumentspublic boolean hasValue()
ExpressionhasValue in interface ExpressionhasValue in class Expressions.TypedExpressionpublic boolean equals(Object o)
equals in class Expressions.TypedExpressionpublic int hashCode()
hashCode in class Expressions.TypedExpression