public final class JCase extends java.lang.Object implements JStatement
Modifier and Type | Field and Description |
---|---|
private JBlock |
body
JBlock of statements which makes up body of this While statement
|
private boolean |
isDefaultCase
is this a regular case statement or a default case statement?
|
private JExpression |
label
label part of the case statement
|
Constructor and Description |
---|
JCase(JExpression label)
Construct a case statement
|
JCase(JExpression label,
boolean isDefaultCase)
Construct a case statement.
|
Modifier and Type | Method and Description |
---|---|
JBlock |
body() |
JExpression |
label() |
void |
state(JFormatter f) |
private JExpression label
private JBlock body
private boolean isDefaultCase
JCase(JExpression label)
JCase(JExpression label, boolean isDefaultCase)
public JExpression label()
public JBlock body()
public void state(JFormatter f)
state
in interface JStatement