Modifier and Type | Method and Description |
---|---|
Block |
getCatchBody(int index)
Get a catch body.
|
int |
getCatchCount()
Get the number of catch blocks.
|
Identifier |
getCatchIdentifier(int index)
Get the named identifier associated with the caught exception of a catch block.
|
java.lang.String |
getCatchType(int index)
Get the type of exception caught by a catch block.
|
Block |
getFinallyBody()
Get the finally body, if any.
|
Block |
getTryBody()
Get the try block.
|
attachTag, getSubElements, isCompound, replaceSubElement, retrieveTag
public Block getTryBody()
Get the try block.
public int getCatchCount()
Get the number of catch blocks.
public Block getCatchBody(int index)
Get a catch body.
index
- 0-based catch block indexpublic java.lang.String getCatchType(int index)
Get the type of exception caught by a catch block.
index
- 0-based catch block indexpublic Identifier getCatchIdentifier(int index)
Get the named identifier associated with the caught exception of a catch block.
index
- 0-based catch block indexpublic Block getFinallyBody()
Get the finally body, if any.