|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Try
An immutable representation of a try
block, one or more
catch
blocks, and an optional finally
block.
Method Summary | |
---|---|
java.util.List |
catchBlocks()
List of catch blocks. |
Try |
catchBlocks(java.util.List catchBlocks)
Set the list of catch blocks. |
Block |
finallyBlock()
The block to "finally" execute. |
Try |
finallyBlock(Block finallyBlock)
Set the block to "finally" execute. |
Block |
tryBlock()
The block to "try". |
Try |
tryBlock(Block tryBlock)
Set the block to "try". |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, entry, exceptions, exceptions, reachable, reachable |
Methods inherited from interface polyglot.ast.Node |
---|
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
---|
copy |
Method Detail |
---|
Block tryBlock()
Try tryBlock(Block tryBlock)
java.util.List catchBlocks()
Catch
.Try catchBlocks(java.util.List catchBlocks)
catchBlocks
- A list of Catch
.Block finallyBlock()
Try finallyBlock(Block finallyBlock)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |