Package org.jboss.jdeparser
Interface JSwitch
- All Superinterfaces:
JCommentable
,JStatement
A
switch
statement.- Author:
- David M. Lloyd
-
Method Summary
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Method Details
-
_case
Add a switch case.- Parameters:
expr
- the case expression- Returns:
- a sub-block for the case logic
-
_case
Add a switch case for anenum
constant.- Parameters:
constName
- the constant name- Returns:
- a sub-block for the case logic
-
_default
JBlock _default()Add the default block.- Returns:
- the default sub-block
-