Package jminusminus

Class SwitchStatementGroup

java.lang.Object
jminusminus.SwitchStatementGroup

class SwitchStatementGroup extends Object
A switch statement group consists of case labels and a block of statements.
  • Constructor Details

    • SwitchStatementGroup

      public SwitchStatementGroup(ArrayList<JExpression> switchLabels, ArrayList<JStatement> block)
      Constructs a switch-statement group.
      Parameters:
      switchLabels - case labels.
      block - block of statements.
  • Method Details

    • toJSON

      public void toJSON(JSONElement json)
      Stores information about this switch statement group in JSON format.
      Parameters:
      json - the JSON emitter.