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 Details

    • BasicBlock

      public BasicBlock(int startIndex)
  • Method Details

    • isCatchBlock

      public boolean isCatchBlock()
      Specified by:
      isCatchBlock in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • getImplicitExceptionTypes

      public Collection<com.ibm.wala.types.TypeReference> getImplicitExceptionTypes(Instruction pei)
      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:
      getLastInstructionIndex in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • getFirstInstructionIndex

      public int getFirstInstructionIndex()
      Specified by:
      getFirstInstructionIndex in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isExitBlock

      public boolean isExitBlock()
      Specified by:
      isExitBlock in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • isEntryBlock

      public boolean isEntryBlock()
      Specified by:
      isEntryBlock in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • getMethod

      public com.ibm.wala.classLoader.IMethod getMethod()
      Specified by:
      getMethod in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getNumber

      public int getNumber()
      Specified by:
      getNumber in interface com.ibm.wala.cfg.IBasicBlock<Instruction>
    • iterator

      public Iterator<Instruction> iterator()
      Specified by:
      iterator in interface Iterable<Instruction>