Package com.ibm.wala.dalvik.classLoader
Class DexCFG.BasicBlock
java.lang.Object
com.ibm.wala.util.graph.impl.NodeWithNumber
com.ibm.wala.dalvik.classLoader.DexCFG.BasicBlock
- All Implemented Interfaces:
com.ibm.wala.cfg.IBasicBlock<Instruction>,com.ibm.wala.util.graph.INodeWithNumber,Iterable<Instruction>
- Enclosing class:
- DexCFG
public final class DexCFG.BasicBlock
extends com.ibm.wala.util.graph.impl.NodeWithNumber
implements com.ibm.wala.cfg.IBasicBlock<Instruction>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintCollection<com.ibm.wala.types.TypeReference>intcom.ibm.wala.classLoader.IMethodintinthashCode()booleanbooleanbooleaniterator()toString()Methods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber
getGraphNodeId, setGraphNodeIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ibm.wala.util.graph.INodeWithNumber
getGraphNodeId, setGraphNodeIdMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BasicBlock
public BasicBlock(int startIndex)
-
-
Method Details
-
isCatchBlock
public boolean isCatchBlock()- Specified by:
isCatchBlockin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
getImplicitExceptionTypes
- Parameters:
pei- a potentially-excepting instruction- Returns:
- the exception types that pei may throw, independent of the class hierarchy. null if
none.
Notes
- this method will NOT return the exception type explicitly thrown by an athrow
- this method will NOT return the exception types that a called method may throw
- this method ignores OutOfMemoryError
- this method ignores linkage errors
- this method ignores IllegalMonitorState exceptions
- Throws:
IllegalArgumentException- if pei is null
-
getLastInstructionIndex
public int getLastInstructionIndex()- Specified by:
getLastInstructionIndexin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
getFirstInstructionIndex
public int getFirstInstructionIndex()- Specified by:
getFirstInstructionIndexin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
toString
-
isExitBlock
public boolean isExitBlock()- Specified by:
isExitBlockin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
isEntryBlock
public boolean isEntryBlock()- Specified by:
isEntryBlockin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
getMethod
public com.ibm.wala.classLoader.IMethod getMethod()- Specified by:
getMethodin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
hashCode
public int hashCode() -
equals
-
getNumber
public int getNumber()- Specified by:
getNumberin interfacecom.ibm.wala.cfg.IBasicBlock<Instruction>
-
iterator
- Specified by:
iteratorin interfaceIterable<Instruction>
-