org.inxar.jenesis
Interface Switch

All Superinterfaces:
Block, Codeable, ConditionalStatement, Statement

public interface Switch
extends ConditionalStatement

Statement subinterface for the switch construct.


Method Summary
 Iterator getCases()
          Gets the set of cases as an iterator of Case.
 Default getDefault()
          Gets the default case.
 Case newCase(Expression constant)
          Adds a new Case to the set of cases.
 
Methods inherited from interface org.inxar.jenesis.ConditionalStatement
getPredicate, setPredicate
 
Methods inherited from interface org.inxar.jenesis.Statement
comment, getLabel, setLabel
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 
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
 

Method Detail

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.