Package jminusminus
Class SwitchStatementGroup
java.lang.Object
jminusminus.SwitchStatementGroup
A switch statement group consists of case labels and a block of statements.
-
Constructor Summary
ConstructorDescriptionSwitchStatementGroup
(ArrayList<JExpression> switchLabels, ArrayList<JStatement> block) Constructs a switch-statement group. -
Method Summary
Modifier and TypeMethodDescriptionvoid
toJSON
(JSONElement json) Stores information about this switch statement group in JSON format.
-
Constructor Details
-
SwitchStatementGroup
Constructs a switch-statement group.- Parameters:
switchLabels
- case labels.block
- block of statements.
-
-
Method Details
-
toJSON
Stores information about this switch statement group in JSON format.- Parameters:
json
- the JSON emitter.
-