Class ColumnExpNode

  • All Implemented Interfaces:
    ExpNode

    public class ColumnExpNode
    extends java.lang.Object
    implements ExpNode
    Represents a reference to a table column or alias in an expression
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String columnName  
      (package private) java.lang.String tableAlias  
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnExpNode​(java.lang.String columnName)
      Public constructor
      ColumnExpNode​(java.lang.String tableAlias, java.lang.String columnName)
      Public constructor
    • Field Detail

      • tableAlias

        final java.lang.String tableAlias
      • columnName

        final java.lang.String columnName
    • Constructor Detail

      • ColumnExpNode

        public ColumnExpNode​(java.lang.String columnName)
        Public constructor
        Parameters:
        columnName -
      • ColumnExpNode

        public ColumnExpNode​(java.lang.String tableAlias,
                             java.lang.String columnName)
        Public constructor
        Parameters:
        tableAlias -
        columnName -
    • Method Detail

      • visit

        public <T> T visit​(ExpNodeVisitor<T> visitor)
        Description copied from interface: ExpNode
        Generic evaluation visitor
        Specified by:
        visit in interface ExpNode
        Returns:
      • 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:
      • toString

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