Package com.sun.codemodel
Class JSwitch
java.lang.Object
com.sun.codemodel.JSwitch
- All Implemented Interfaces:
JStatement
Switch statement
-
Field Summary
FieldsModifier and TypeFieldDescriptionvector of JCases.private JCase
a single default caseprivate JExpression
Test part of switch statement. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_case
(JExpression label) _default()
cases()
void
state
(JFormatter f) test()
-
Field Details
-
test
Test part of switch statement. -
cases
vector of JCases. -
defaultCase
a single default case
-
-
Constructor Details
-
JSwitch
JSwitch(JExpression test) Construct a While statment
-
-
Method Details
-
test
-
cases
-
_case
-
_default
-
state
- Specified by:
state
in interfaceJStatement
-