Class Coalesce

  • All Implemented Interfaces:
    Serializable

    public class Coalesce
    extends Expression
    Represents the coalesce operator.
    Since:
    2.0.0
    Author:
    Rui Vilao (rui.vilao@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Coalesce

        public Coalesce​(Expression exp,
                        Expression... alternative)
        Creates a new instance of Coalesce.
        Parameters:
        exp - The expression to test.
        alternative - The alternative expressions.
    • Method Detail

      • getExp

        public Expression getExp()
        Gets the expression to test.
        Returns:
        The expression to test.
      • getAlternative

        public Expression[] getAlternative()
        Gets the alternative expressions.
        Returns:
        The alternative expressions.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.