Class 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.
    • Field Detail

      • 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 evaluating 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..
        Specified by:
        evaluate in class Node
      • changeInitialCase

        private static java.lang.String changeInitialCase​(java.lang.String id)