Class BindMarkerNode

    • Constructor Summary

      Constructors 
      Constructor Description
      BindMarkerNode()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean checkTypeAndValue​(java.lang.Object expectedValue)
      Check that the value represented by this bind marker equals the type and value of the given expectedValue.
      boolean isOperand()
      Is this expression node an operand
      void popOperands​(java.util.Stack<ExpNode> stack)
      Read the operands from the stack
      int precedence()
      Precedence of this expression node.
      java.lang.String toString()  
      abstract java.lang.String toValueString​(java.lang.String defaultValue)
      Return a string of the value being represented by this bind marker, or the defaultValue if the internal value is null.
      abstract void visit​(BindMarkerNodeVisitor visitor)
      Apply this node to the given visitor
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BindMarkerNode

        public BindMarkerNode()
    • Method Detail

      • precedence

        public int precedence()
        Description copied from interface: ExpNode
        Precedence of this expression node. Used to parse the expression into the correct tree. We use 0 to represent the highest precedence
        Specified by:
        precedence in interface ExpNode
        Returns:
      • popOperands

        public void popOperands​(java.util.Stack<ExpNode> stack)
        Description copied from interface: ExpNode
        Read the operands from the stack
        Specified by:
        popOperands in interface ExpNode
      • isOperand

        public boolean isOperand()
        Description copied from interface: ExpNode
        Is this expression node an operand
        Specified by:
        isOperand in interface ExpNode
        Returns:
      • visit

        public abstract void visit​(BindMarkerNodeVisitor visitor)
        Apply this node to the given visitor
        Parameters:
        visitor -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • checkTypeAndValue

        public abstract boolean checkTypeAndValue​(java.lang.Object expectedValue)
        Check that the value represented by this bind marker equals the type and value of the given expectedValue.
        Parameters:
        expectedValue -
        Returns:
      • toValueString

        public abstract java.lang.String toValueString​(java.lang.String defaultValue)
        Return a string of the value being represented by this bind marker, or the defaultValue if the internal value is null.
        Returns: