Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList<Node> |
nodes |
lineNumber
Constructor and Description |
---|
Cons(int lineNumber,
com.google.common.collect.ImmutableList<Node> nodes) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
evaluate(EvaluationContext context)
Returns the result of evaluating this node in the given context.
|
cons, emptyNode, evaluationException, evaluationException
private final com.google.common.collect.ImmutableList<Node> nodes
Cons(int lineNumber, com.google.common.collect.ImmutableList<Node> nodes)
java.lang.Object evaluate(EvaluationContext context)
Node
2 + 3
to 5 in order to set
$x
to 5 in #set ($x = 2 + 3)
. Or it may be used directly as part of the
template output, for example evaluating replacing name
by Fred
in
My name is $name.
.