org.inxar.jenesis
Interface Switch
- All Superinterfaces:
- Block, Codeable, ConditionalStatement, Statement
- public interface Switch
- extends ConditionalStatement
Statement
subinterface for the switch
construct.
Methods inherited from interface org.inxar.jenesis.Block |
getStatements, newBreak, newContinue, newDoWhile, newEmpty, newFor, newIf, newLet, newLocalBlock, newLocalClass, newReturn, newStmt, newSwitch, newSynchronized, newThrow, newTry, newWhile |
getCases
public Iterator getCases()
- Gets the set of cases as an iterator of
Case
.
newCase
public Case newCase(Expression constant)
- Adds a new
Case
to the set of cases.
getDefault
public Default getDefault()
- Gets the default case.