Class ASTIdentifier

    • Field Detail

      • REDEFINED

        private static final int REDEFINED
        The redefined variable flag.
        See Also:
        Constant Field Values
      • CAPTURED

        private static final int CAPTURED
        The captured variable flag.
        See Also:
        Constant Field Values
      • name

        protected java.lang.String name
      • symbol

        protected int symbol
      • flags

        protected int flags
    • Constructor Detail

      • ASTIdentifier

        ASTIdentifier​(int id)
    • Method Detail

      • isSet

        private static boolean isSet​(int ordinal,
                                     int mask)
        Checks the value of a flag in the mask.
        Parameters:
        ordinal - the flag ordinal
        mask - the flags mask
        Returns:
        the mask value with this flag or-ed in
      • set

        private static int set​(int ordinal,
                               int mask,
                               boolean value)
        Sets the value of a flag in a mask.
        Parameters:
        ordinal - the flag ordinal
        mask - the flags mask
        value - true or false
        Returns:
        the new flags mask value
      • getName

        public java.lang.String getName()
      • getNamespace

        public java.lang.String getNamespace()
      • getSymbol

        public int getSymbol()
      • isCaptured

        public boolean isCaptured()
      • isConstant

        public boolean isConstant()
        Description copied from class: JexlNode
        Whether this node is a constant node.

        Its value can not change after the first evaluation and can be cached indefinitely.

        Overrides:
        isConstant in class JexlNode
        Returns:
        true if constant, false otherwise
      • isLexical

        public boolean isLexical()
      • isRedefined

        public boolean isRedefined()
      • isShaded

        public boolean isShaded()
      • 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
      • setCaptured

        public void setCaptured​(boolean f)
      • setConstant

        public void setConstant​(boolean f)
      • setLexical

        public void setLexical​(boolean f)
      • setRedefined

        public void setRedefined​(boolean f)
      • setShaded

        public void setShaded​(boolean f)
      • setSymbol

        void setSymbol​(int r,
                       java.lang.String identifier)
      • setSymbol

        void setSymbol​(java.lang.String identifier)