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, simplify
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getTags, getType, setTags, simplify
public T get()
Value
public Value evaluate(Env env, Object... args)
Expression
evaluate
in interface Expression
env
- Environmentargs
- Argumentspublic boolean hasValue()
Expression
hasValue
in interface Expression
hasValue
in class Expressions.TypedExpression
public boolean equals(Object o)
equals
in class Expressions.TypedExpression
public int hashCode()
hashCode
in class Expressions.TypedExpression