Class SearchedCaseExpression

    • Constructor Detail

      • SearchedCaseExpression

        public SearchedCaseExpression​(List when,
                                      List then)
        Constructor for SearchedCaseExpression objects
        Parameters:
        when - a non-null List containing at least one Criteria
        then - a non-null List containing at least one Expression
    • Method Detail

      • getWhen

        public List getWhen()
        Gets the List of Criteria in the WHEN parts of this expression. Never null.
        Returns:
      • getWhenCriteria

        public Criteria getWhenCriteria​(int index)
        Gets the WHEN criteria at the given 0-based index.
        Parameters:
        index -
        Returns:
      • setWhen

        public void setWhen​(List when,
                            List then)
        Sets the WHEN and THEN parts of this CASE expression. Both lists should have the same number of items.
        Specified by:
        setWhen in class AbstractCaseExpression
        Parameters:
        when - a non-null List of at least one Criteria
        then - a non-null List of at least one Expression
      • 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.
        Parameters:
        visitor - Visitor being used