public final class TryCatchRegion extends AbstractRegion implements IBranchRegion
| Constructor and Description |
|---|
TryCatchRegion(IRegion parent,
IContainer tryRegion) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
baseString()
Unique id for use in 'toString()' method
|
void |
generate(RegionGen regionGen,
ICodeWriter code)
Dispatch to needed generate method in RegionGen
|
java.util.List<IContainer> |
getBranches()
Return list of branches in this region.
|
java.util.Map<ExceptionHandler,IContainer> |
getCatchRegions() |
IContainer |
getFinallyRegion() |
java.util.List<IContainer> |
getSubBlocks() |
TryCatchBlockAttr |
getTryCatchBlock() |
IContainer |
getTryRegion() |
void |
setFinallyRegion(IContainer finallyRegion) |
void |
setTryCatchBlock(TryCatchBlockAttr tryCatchBlock) |
java.lang.String |
toString() |
getParent, replaceSubBlock, setParent, updateParentadd, addAttr, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrom, unloadAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParent, replaceSubBlock, setParentadd, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrompublic TryCatchRegion(IRegion parent, IContainer tryRegion)
public void setTryCatchBlock(TryCatchBlockAttr tryCatchBlock)
public IContainer getTryRegion()
public java.util.Map<ExceptionHandler,IContainer> getCatchRegions()
public TryCatchBlockAttr getTryCatchBlock()
public IContainer getFinallyRegion()
public void setFinallyRegion(IContainer finallyRegion)
public java.util.List<IContainer> getSubBlocks()
getSubBlocks in interface IRegionpublic java.util.List<IContainer> getBranches()
IBranchRegiongetBranches in interface IBranchRegionpublic void generate(RegionGen regionGen, ICodeWriter code) throws CodegenException
IContainergenerate in interface IContainerCodegenExceptionpublic java.lang.String baseString()
IContainerbaseString in interface IContainerpublic java.lang.String toString()
toString in class java.lang.Object