Java.BlockStatement, Java.Locatable, Java.Scopepublic static final class Java.SwitchStatement extends Java.BreakableStatement
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Java.SwitchStatement.SwitchBlockStatementGroup |
Representation of a 'switch block statement group' as defined in JLS7 14.11.
|
| Modifier and Type | Field | Description |
|---|---|---|
Java.Rvalue |
condition |
The rvalue that is evaluated and matched with the CASE clauses.
|
List<Java.SwitchStatement.SwitchBlockStatementGroup> |
sbsgs |
The list of 'switch block statement groups' that pose the body of the SWITCH statement.
|
NOWHERElocalVariables| Constructor | Description |
|---|---|
SwitchStatement(Location location,
Java.Rvalue condition,
List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(Visitor.BlockStatementVisitor visitor) |
Invokes the '
visit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString() |
getLocation, throwCompileExceptiongetLocation, throwCompileExceptionfindLocalVariable, getEnclosingScope, setEnclosingScopepublic final Java.Rvalue condition
public final List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs
public SwitchStatement(Location location, Java.Rvalue condition, List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs)
public void accept(Visitor.BlockStatementVisitor visitor)
Java.BlockStatementvisit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.Copyright © 2001–2019. All rights reserved.