Java.BlockStatement
, Java.Locatable
, Java.Scope
public 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.
|
NOWHERE
localVariables
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, throwCompileException
getLocation, throwCompileException
findLocalVariable, getEnclosingScope, setEnclosingScope
public 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.BlockStatement
visit...()
' method of Visitor.BlockStatementVisitor
for the concrete
Java.BlockStatement
type.Copyright © 2001–2019. All rights reserved.