R
- the type of the resulting value of the expressionpublic final class ResolvedExpression<R> extends java.lang.Object implements Expression<R>, java.io.Serializable
get()
method.Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
R |
get()
Retrieves the value of the expression.
|
java.util.List<Node> |
getChildren()
Has to return the children of the node.
|
int |
hashCode() |
boolean |
isResolved()
returns
true if the expression contains a concrete value. |
static <T> ResolvedExpression<T> |
of(T value) |
java.lang.String |
toString() |
public static <T> ResolvedExpression<T> of(T value)
public boolean isResolved()
Expression
true
if the expression contains a concrete value. Thus the method Expression.get()
can be used to
retrieve the actual value. If this method returns false
, then the get method will throw an exception.isResolved
in interface Expression<R>
true
if the value can be retrieved, false
otherwise.public R get()
Expression
get
in interface Expression<R>
public java.util.List<Node> getChildren()
Node
null
getChildren
in interface Node
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object