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