public final class JSwitch extends java.lang.Object implements JStatement
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<JCase> |
cases
vector of JCases.
|
private JCase |
defaultCase
a single default case
|
private JExpression |
test
Test part of switch statement.
|
| Constructor and Description |
|---|
JSwitch(JExpression test)
Construct a While statment
|
| Modifier and Type | Method and Description |
|---|---|
JCase |
_case(JExpression label) |
JCase |
_default() |
java.util.Iterator<JCase> |
cases() |
void |
state(JFormatter f) |
JExpression |
test() |
private JExpression test
private java.util.List<JCase> cases
private JCase defaultCase
JSwitch(JExpression test)
public JExpression test()
public java.util.Iterator<JCase> cases()
public JCase _case(JExpression label)
public JCase _default()
public void state(JFormatter f)
state in interface JStatement