Class BoxSwitchCase

All Implemented Interfaces:
BoxVisitable

public class BoxSwitchCase extends BoxStatement
AST Node representing a switch case statement
  • Constructor Details

    • BoxSwitchCase

      public BoxSwitchCase(BoxExpression condition, BoxExpression delimiter, List<BoxStatement> body, Position position, String sourceText)
      Creates the AST node
      Parameters:
      condition - expression representing the condition to test, null for the default
      body - list of the statements to execute when the condition is true
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details