public static final class Java.SwitchStatement extends Java.BreakableStatement
switch Statement.| 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.
|
localVariablesNOWHERE| Constructor and Description |
|---|
SwitchStatement(Location location,
Java.Rvalue condition,
List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs) |
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.BlockStatementVisitor<R,EX> visitor)
Invokes the '
visit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type. |
String |
toString() |
findLocalVariable, getEnclosingScope, setEnclosingScopegetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileExceptionpublic final Java.Rvalue condition
public final List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs
public SwitchStatement(Location location, Java.Rvalue condition, List<Java.SwitchStatement.SwitchBlockStatementGroup> sbsgs)
@Nullable public <R,EX extends Throwable> R accept(Visitor.BlockStatementVisitor<R,EX> visitor) throws EX extends Throwable
Java.BlockStatementvisit...()' method of Visitor.BlockStatementVisitor for the concrete
Java.BlockStatement type.EX extends Throwable