org.inxar.jenesis
Interface Try

All Superinterfaces:
Block, Codeable, Statement

public interface Try
extends Statement, Block

Statement subinterface for the try catch finally construct.


Method Summary
 Iterator getCatches()
          Gets the list of catches as an iterator of Catch.
 Finally getFinally()
          Gets the optional Finally statement.
 Catch newCatch(Type type, java.lang.String name)
          Adds a new Catch statement to this Try.
 
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

getCatches

public Iterator getCatches()
Gets the list of catches as an iterator of Catch.

newCatch

public Catch newCatch(Type type,
                      java.lang.String name)
Adds a new Catch statement to this Try.

getFinally

public Finally getFinally()
Gets the optional Finally statement.