public interface JSwitch extends JStatement
switch
statement.Modifier and Type | Method and Description |
---|---|
JBlock |
_case(JExpr expr)
Add a switch case.
|
JBlock |
_case(String constName)
Add a switch case for an
enum constant. |
JBlock |
_default()
Add the default block.
|
blockComment, lineComment
JBlock _case(JExpr expr)
expr
- the case expressionJBlock _case(String constName)
enum
constant.constName
- the constant nameJBlock _default()
Copyright © 2019 JBoss by Red Hat. All rights reserved.