Class ASTIdentifierAccess

    • Field Detail

      • name

        private java.lang.String name
      • identifier

        private java.lang.Integer identifier
    • Constructor Detail

      • ASTIdentifierAccess

        ASTIdentifierAccess​(int id)
    • Method Detail

      • parseIdentifier

        public static java.lang.Integer parseIdentifier​(java.lang.String id)
        Parse an identifier which must be of the form: 0|([1-9][0-9]*)
        Parameters:
        id - the identifier
        Returns:
        an integer or null
      • getIdentifier

        public java.lang.Object getIdentifier()
      • getName

        public java.lang.String getName()
      • isExpression

        public boolean isExpression()
        Whether this is a Jxlt based identifier.
        Returns:
        true if `..${...}...`, false otherwise
      • isGlobalVar

        public boolean isGlobalVar()
        Overrides:
        isGlobalVar in class JexlNode
        Returns:
        true if this node looks like a global var
      • isSafe

        public boolean isSafe()
        Whether this is a dot or a question-mark-dot aka safe-navigation access.
        Returns:
        true is ?., false if .
      • jjtAccept

        public java.lang.Object jjtAccept​(ParserVisitor visitor,
                                          java.lang.Object data)
        Description copied from class: SimpleNode
        Accepts the visitor.
        Specified by:
        jjtAccept in interface Node
        Overrides:
        jjtAccept in class SimpleNode
        Parameters:
        visitor - the visitor
        data - contextual data
        Returns:
        result of visit
      • setIdentifier

        void setIdentifier​(java.lang.String id)