| spoon.reflect.code.CtSwitch
CtSwitch | public interface CtSwitch extends CtStatement(Code) | | This code element defines a switch statement.
< Parameters: S - >the type of the selector expression (it would be better to be ableto define an upper bound, but it is not possible because of Java'stype hierachy, especially since the enums that make things evenworse!) |
getCases | List<CtCase<? super S>> getCases()(Code) | | Gets the list of cases defined for this switch.
|
getSelector | CtExpression<S> getSelector()(Code) | | Gets the selector. The type of the Expression must be char ,
byte , short , int ,
Character , Byte , Short ,
Integer , or an enum type
|
setCases | void setCases(List<CtCase<? super S>> cases)(Code) | | Sets the list of cases defined for this switch.
|
setSelector | void setSelector(CtExpression<S> selector)(Code) | | Sets the selector. The type of the Expression must be char ,
byte , short , int ,
Character , Byte , Short ,
Integer , or an enum type
|
|
|