Class WhenExp

All Implemented Interfaces:
XMLSerializable

public final class WhenExp extends AggregateConditionExp
"WHEN" part of the case-when expression.
Since:
5.0
  • Constructor Details

    • WhenExp

      public WhenExp(Object... operands)
  • Method Details

    • shallowCopy

      public Expression shallowCopy()
      Description copied from class: Expression
      Creates a copy of this expression node, without copying children.
      Specified by:
      shallowCopy in class Expression
    • getExpressionOperator

      protected String getExpressionOperator(int index)
      Description copied from class: Expression
      Returns the operator printed between the operands, before the operand at the given index.
      Specified by:
      getExpressionOperator in class Expression
    • isValidParent

      protected boolean isValidParent(Expression parent)
      Description copied from class: Expression
      Whether this node can be an operand of the given node. Called by the parent when the operand is set, to check what the grammar can't: e.g. a condition can only be an operand of a condition aggregate. By default any parent is valid.
      Overrides:
      isValidParent in class AggregateConditionExp
    • evaluateNode

      protected Object evaluateNode(Object o) throws Exception
      Description copied from class: Expression
      Evaluates itself with object, pushing result on the stack.
      Specified by:
      evaluateNode in class Expression
      Throws:
      Exception