Package jadx.core.dex.regions
Class SwitchRegion
- java.lang.Object
-
- jadx.core.dex.attributes.AttrNode
-
- jadx.core.dex.regions.AbstractRegion
-
- jadx.core.dex.regions.SwitchRegion
-
- All Implemented Interfaces:
IAttributeNode,IBranchRegion,IContainer,IRegion
public final class SwitchRegion extends AbstractRegion implements IBranchRegion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwitchRegion.CaseInfo
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ObjectDEFAULT_CASE_KEY
-
Constructor Summary
Constructors Constructor Description SwitchRegion(IRegion parent, BlockNode header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCase(java.util.List<java.lang.Object> keysList, IContainer c)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.List<IContainer>getCaseContainers()java.util.List<SwitchRegion.CaseInfo>getCases()BlockNodegetHeader()java.util.List<IContainer>getSubBlocks()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
-
-
-
-
Method Detail
-
getHeader
public BlockNode getHeader()
-
addCase
public void addCase(java.util.List<java.lang.Object> keysList, IContainer c)
-
getCases
public java.util.List<SwitchRegion.CaseInfo> getCases()
-
getCaseContainers
public java.util.List<IContainer> getCaseContainers()
-
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
-
-