org.inxar.jenesis
Interface Try
- All Superinterfaces:
- Block, Codeable, Statement
- public interface Try
- extends Statement, Block
Statement
subinterface for the try catch
finally
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 |
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.