Class ReferenceNode.MemberReferenceNode
- java.lang.Object
-
- com.google.auto.value.processor.escapevelocity.Node
-
- com.google.auto.value.processor.escapevelocity.ExpressionNode
-
- com.google.auto.value.processor.escapevelocity.ReferenceNode
-
- com.google.auto.value.processor.escapevelocity.ReferenceNode.MemberReferenceNode
-
- Enclosing class:
- ReferenceNode
static class ReferenceNode.MemberReferenceNode extends ReferenceNode
A node in the parse tree that is a reference to a property of another reference, like$x.foo
or$x[$i].foo
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.auto.value.processor.escapevelocity.ReferenceNode
ReferenceNode.IndexReferenceNode, ReferenceNode.MemberReferenceNode, ReferenceNode.MethodReferenceNode, ReferenceNode.PlainReferenceNode
-
Nested classes/interfaces inherited from class com.google.auto.value.processor.escapevelocity.ExpressionNode
ExpressionNode.BinaryExpressionNode, ExpressionNode.NotExpressionNode
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean[]
CHANGE_CASE
(package private) java.lang.String
id
(package private) ReferenceNode
lhs
private static java.lang.String[]
PREFIXES
-
Fields inherited from class com.google.auto.value.processor.escapevelocity.Node
lineNumber, resourceName
-
-
Constructor Summary
Constructors Constructor Description MemberReferenceNode(ReferenceNode lhs, java.lang.String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.google.auto.value.processor.escapevelocity.ReferenceNode
invokeMethod, visibleMethod
-
Methods inherited from class com.google.auto.value.processor.escapevelocity.ExpressionNode
intValue, isDefinedAndTrue, isTrue
-
Methods inherited from class com.google.auto.value.processor.escapevelocity.Node
cons, emptyNode, evaluationException, evaluationException
-
-
-
-
Field Detail
-
lhs
final ReferenceNode lhs
-
id
final java.lang.String id
-
PREFIXES
private static final java.lang.String[] PREFIXES
-
CHANGE_CASE
private static final boolean[] CHANGE_CASE
-
-
Constructor Detail
-
MemberReferenceNode
MemberReferenceNode(ReferenceNode lhs, java.lang.String id)
-
-
Method Detail
-
evaluate
java.lang.Object evaluate(EvaluationContext context)
Description copied from class:Node
Returns the result of evaluating this node in the given context. This result may be used as part of a further operation, for example evaluating2 + 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 replacingname
byFred
inMy name is $name.
.
-
changeInitialCase
private static java.lang.String changeInitialCase(java.lang.String id)
-
-