Class Reference

    • Constructor Detail

      • Reference

        public Reference​(int refIndex)
        Constructor for a positional Reference.
      • Reference

        public Reference​(ElementSymbol expression)
        Constructor for an element Reference.
    • Method Detail

      • getIndex

        public int getIndex()
      • getType

        public Class<?> getType()
        Description copied from interface: Expression
        Get the return type of this expression.
        Specified by:
        getType in interface Expression
        Returns:
        Java class may be null prior to being resolved
      • acceptVisitor

        public void acceptVisitor​(LanguageVisitor visitor)
        Description copied from interface: LanguageObject
        Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.
        Specified by:
        acceptVisitor in interface LanguageObject
        Parameters:
        visitor - Visitor being used
      • equals

        public boolean equals​(Object obj)
        Compare this constant to another constant for equality.
        Overrides:
        equals in class Object
        Parameters:
        obj - Other object
        Returns:
        True if constants are equal
      • setType

        public void setType​(Class<?> type)
      • hashCode

        public int hashCode()
        Define hash code to be that of the underlying object to make it stable.
        Overrides:
        hashCode in class Object
        Returns:
        Hash code, based on value
      • toString

        public String toString()
        Return a String representation of this object using SQLStringVisitor.
        Overrides:
        toString in class Object
        Returns:
        String representation using SQLStringVisitor
      • isCorrelated

        public boolean isCorrelated()
      • isPositional

        public boolean isPositional()
      • setExpression

        public void setExpression​(ElementSymbol expression)
      • isOptional

        public boolean isOptional()
      • setOptional

        public void setOptional​(boolean optional)