public class JCase extends Object implements IJStatement
Constructor and Description |
---|
JCase(IJExpression aLabel)
Construct a case statement
|
JCase(IJExpression aLabel,
boolean bIsDefaultCase)
Construct a case statement.
|
Modifier and Type | Method and Description |
---|---|
JBlock |
body() |
boolean |
isDefaultCase() |
IJExpression |
label() |
void |
state(IJFormatter f) |
public JCase(@Nonnull IJExpression aLabel)
aLabel
- Label name. May not be null
.public JCase(@Nullable IJExpression aLabel, boolean bIsDefaultCase)
aLabel
- Label name. May be null
for the default case.bIsDefaultCase
- true
if this is the default:
case which
renders differently.@Nullable public IJExpression label()
public boolean isDefaultCase()
public void state(@Nonnull IJFormatter f)
state
in interface IJStatement
Copyright © 2013–2018 Philip Helger. All rights reserved.