Package jadx.core.dex.regions
Class TryCatchRegion
- java.lang.Object
-
- jadx.core.dex.attributes.AttrNode
-
- jadx.core.dex.regions.AbstractRegion
-
- jadx.core.dex.regions.TryCatchRegion
-
- All Implemented Interfaces:
IAttributeNode,IBranchRegion,IContainer,IRegion
public final class TryCatchRegion extends AbstractRegion implements IBranchRegion
-
-
Constructor Summary
Constructors Constructor Description TryCatchRegion(IRegion parent, IContainer tryRegion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbaseString()Unique id for use in 'toString()' methodvoidgenerate(RegionGen regionGen, ICodeWriter code)Dispatch to needed generate method in RegionGenjava.util.List<IContainer>getBranches()Return list of branches in this region.java.util.Map<ExceptionHandler,IContainer>getCatchRegions()IContainergetFinallyRegion()java.util.List<IContainer>getSubBlocks()TryCatchBlockAttrgetTryCatchBlock()IContainergetTryRegion()voidsetFinallyRegion(IContainer finallyRegion)voidsetTryCatchBlock(TryCatchBlockAttr tryCatchBlock)java.lang.StringtoString()-
Methods inherited from class jadx.core.dex.regions.AbstractRegion
getParent, replaceSubBlock, setParent, updateParent
-
Methods inherited from class jadx.core.dex.attributes.AttrNode
add, addAttr, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrom, unloadAttributes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadx.core.dex.attributes.IAttributeNode
add, addAttr, addAttr, addAttrs, clearAttributes, contains, contains, copyAttributeFrom, copyAttributesFrom, get, getAll, getAnnotation, getAttributesString, getAttributesStringsList, isAttrStorageEmpty, remove, remove, removeAttr, rewriteAttributeFrom
-
Methods inherited from interface jadx.core.dex.nodes.IRegion
getParent, replaceSubBlock, setParent
-
-
-
-
Constructor Detail
-
TryCatchRegion
public TryCatchRegion(IRegion parent, IContainer tryRegion)
-
-
Method Detail
-
setTryCatchBlock
public void setTryCatchBlock(TryCatchBlockAttr tryCatchBlock)
-
getTryRegion
public IContainer getTryRegion()
-
getCatchRegions
public java.util.Map<ExceptionHandler,IContainer> getCatchRegions()
-
getTryCatchBlock
public TryCatchBlockAttr getTryCatchBlock()
-
getFinallyRegion
public IContainer getFinallyRegion()
-
setFinallyRegion
public void setFinallyRegion(IContainer finallyRegion)
-
getSubBlocks
public java.util.List<IContainer> getSubBlocks()
- Specified by:
getSubBlocksin interfaceIRegion
-
getBranches
public java.util.List<IContainer> getBranches()
Description copied from interface:IBranchRegionReturn list of branches in this region. NOTE: Contains 'null' elements for indicate empty branches.- Specified by:
getBranchesin interfaceIBranchRegion
-
generate
public void generate(RegionGen regionGen, ICodeWriter code) throws CodegenException
Description copied from interface:IContainerDispatch to needed generate method in RegionGen- Specified by:
generatein interfaceIContainer- Throws:
CodegenException
-
baseString
public java.lang.String baseString()
Description copied from interface:IContainerUnique id for use in 'toString()' method- Specified by:
baseStringin interfaceIContainer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-