Package org.codehaus.janino
Class Java.SwitchStatement.SwitchBlockStatementGroup
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.SwitchStatement.SwitchBlockStatementGroup
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
Java.SwitchStatement
Representation of a "switch block statement group" as defined in JLS7 14.11.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List
<Java.BlockStatement> The statements following the CASE labels.final List
<Java.Rvalue> The CASE labels at the top of the "switch block statement group".final boolean
Whether this "switch block statement group" includes the DEFAULT label.Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
ConstructorsConstructorDescriptionSwitchBlockStatementGroup
(Location location, List<Java.Rvalue> caseLabels, boolean hasDefaultLabel, List<Java.BlockStatement> blockStatements) -
Method Summary
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Field Details
-
caseLabels
The CASE labels at the top of the "switch block statement group". -
hasDefaultLabel
public final boolean hasDefaultLabelWhether this "switch block statement group" includes the DEFAULT label. -
blockStatements
The statements following the CASE labels.
-
-
Constructor Details
-
SwitchBlockStatementGroup
public SwitchBlockStatementGroup(Location location, List<Java.Rvalue> caseLabels, boolean hasDefaultLabel, List<Java.BlockStatement> blockStatements)
-
-
Method Details