public static final class Java.SwitchStatement extends Java.BreakableStatement
Modifier and Type | Class and Description |
---|---|
static class |
Java.SwitchStatement.SwitchBlockStatementGroup
Representation of a 'switch block statement group' as defined in JLS7 14.11.
|
Modifier and Type | Field and 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.
|
localVariables
NOWHERE
Constructor and Description |
---|
SwitchStatement(Location location,
Java.Rvalue condition,
List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.BlockStatementVisitor visitor)
Invokes the '
visit...() ' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScope
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
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–2016. All rights reserved.