static class ReferenceNode.MemberReferenceNode extends ReferenceNode
$x.foo
or $x[$i].foo
.ReferenceNode.IndexReferenceNode, ReferenceNode.MemberReferenceNode, ReferenceNode.MethodReferenceNode, ReferenceNode.PlainReferenceNode
ExpressionNode.BinaryExpressionNode, ExpressionNode.NotExpressionNode
Modifier and Type | Field and Description |
---|---|
private static boolean[] |
CHANGE_CASE |
(package private) java.lang.String |
id |
(package private) ReferenceNode |
lhs |
private static java.lang.String[] |
PREFIXES |
lineNumber
Constructor and Description |
---|
MemberReferenceNode(ReferenceNode lhs,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
changeInitialCase(java.lang.String id) |
(package private) java.lang.Object |
evaluate(EvaluationContext context)
Returns the result of evaluating this node in the given context.
|
invokeMethod, visibleMethod
intValue, isDefinedAndTrue, isTrue
cons, emptyNode, evaluationException, evaluationException
final ReferenceNode lhs
final java.lang.String id
private static final java.lang.String[] PREFIXES
private static final boolean[] CHANGE_CASE
MemberReferenceNode(ReferenceNode lhs, java.lang.String id)
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.
.private static java.lang.String changeInitialCase(java.lang.String id)