Class ConditionalStatement

All Implemented Interfaces:
Node

public class ConditionalStatement extends Statement
Represents an expression that has a conditional operator.

With an odd number of expressions {c0, e0, c1, e1, ..., cn-1, en-1, en} represents "if (c0) e0 else if (c1) e1 ... else en"; with an even number of expressions {c0, e0, c1, e1, ..., cn-1, en-1} represents "if (c0) e0 else if (c1) e1 ... else if (cn-1) en-1".

  • Field Details

    • expressionList

      public final List<Node> expressionList
  • Constructor Details

    • ConditionalStatement

      public ConditionalStatement(List<Node> expressionList)
  • Method Details