Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package opalj
    Definition Classes
    org
  • package br

    In this representation of Java bytecode references to a Java class file's constant pool and to attributes are replaced by direct references to the corresponding constant pool entries.

    In this representation of Java bytecode references to a Java class file's constant pool and to attributes are replaced by direct references to the corresponding constant pool entries. This facilitates developing analyses and fosters comprehension.

    Based on the fact that indirect references to constant pool entries are resolved and replaced by direct references this representation is called the resolved representation.

    This representation of Java bytecode is considered as OPAL's standard representation for writing Scala based analyses. This representation is engineered such that it facilitates writing analyses that use pattern matching.

    Definition Classes
    opalj
  • package cfg
    Definition Classes
    br
  • BasicBlock
  • CFG
  • CFGFactory
  • CFGNode
  • CatchNode
  • ExitNode
c

org.opalj.br.cfg

BasicBlock

class BasicBlock extends CFGNode

Represents a basic block of a method's control flow graph (CFG). The basic block is identified by referring to the first and last instruction belonging to the basic block.

Linear Supertypes
CFGNode, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicBlock
  2. CFGNode
  3. Node
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicBlock(startPC: Int, successors: Set[CFGNode])
  2. new BasicBlock(startPC: Int, _endPC: Int = Int.MinValue)

    startPC

    The pc of the first instruction belonging to the BasicBlock.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addPredecessor(predecessor: CFGNode): Unit
    Definition Classes
    CFGNode
  5. def addPredecessors(predecessor: TraversableOnce[CFGNode]): Unit
    Definition Classes
    CFGNode
  6. def addSuccessor(successor: CFGNode): Unit
    Definition Classes
    CFGNode
  7. final def asBasicBlock: BasicBlock.this.type
    Definition Classes
    BasicBlockCFGNode
  8. def asCatchNode: CatchNode
    Definition Classes
    CFGNode
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. def copy(startPC: Int = this.startPC, endPC: Int = this.endPC, predecessors: Set[CFGNode] = this.predecessors, successors: Set[CFGNode] = this.successors): BasicBlock
  12. def countInstructions(implicit code: Code): Int

    Counts the instructions of this basic block.

  13. def endPC: Int

    The pc of the last instruction belonging to this basic block.

  14. def endPC_=(pc: Int): Unit
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(other: Any): Boolean
    Definition Classes
    Node → AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def foreach[U](f: (Int) ⇒ U)(implicit code: Code): Unit

    Calls the function f for all instructions - identified by their respective pcs - of a basic block.

    Calls the function f for all instructions - identified by their respective pcs - of a basic block.

    f

    The function that will be called.

    code

    The org.opalj.br.Code object to which this BasicBlock implicitly belongs.

  19. final def foreachSuccessor(f: (Node) ⇒ Unit): Unit
    Definition Classes
    CFGNode → Node
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def hasSuccessors: Boolean
    Definition Classes
    CFGNode → Node
  22. def hashCode(): Int
    Definition Classes
    Node → AnyRef → Any
  23. def index(pc: Int)(implicit code: Code): Int

    Returns the index of an instruction – identified by its program counter (pc) – in a basic block.

    Returns the index of an instruction – identified by its program counter (pc) – in a basic block.

    Example

    Given a basic block which has five instructions which have the following program counters: {0,1,3,5,6}. In this case the index of the instruction with program counter 3 will be 2 and in case of the instruction with pc 6 the index will be 4.

    pc

    The program counter of the instruction for which the index is needed. pc has to satisfy: startPC <= pc <= endPC.

    code

    The code to which this basic block belongs.

  24. final def isAbnormalReturnExitNode: Boolean
    Definition Classes
    BasicBlockCFGNode
  25. final def isBasicBlock: Boolean
    Definition Classes
    BasicBlockCFGNode
  26. final def isCatchNode: Boolean
    Definition Classes
    BasicBlockCFGNode
  27. final def isExitNode: Boolean
    Definition Classes
    BasicBlockCFGNode
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def isNormalReturnExitNode: Boolean
    Definition Classes
    BasicBlockCFGNode
  30. def isStartOfSubroutine: Boolean
    Definition Classes
    BasicBlockCFGNode
  31. def mayThrowException: Boolean

    Returns true if the last instruction of this basic block throws/may throw an exception; whether the exception is handled or not is not relevant!

    Returns true if the last instruction of this basic block throws/may throw an exception; whether the exception is handled or not is not relevant!

    Definition Classes
    CFGNode
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def nodeId: Int
    Definition Classes
    BasicBlock → Node
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. def predecessors: Set[CFGNode]
    Definition Classes
    CFGNode
  37. def reachable(reflexive: Boolean = false): Set[CFGNode]

    Computes the set of all CFGNodes that are reachable from this one.

    Computes the set of all CFGNodes that are reachable from this one.

    Definition Classes
    CFGNode
    Note

    The result is not cached.

  38. def removePredecessor(predecessor: CFGNode): Unit
    Definition Classes
    CFGNode
  39. def setIsStartOfSubroutine(): Unit
  40. val startPC: Int
  41. def successors: Set[CFGNode]
    Definition Classes
    CFGNode
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def toHRR: Option[String]
    Definition Classes
    BasicBlock → Node
  44. def toString(): String
    Definition Classes
    BasicBlock → AnyRef → Any
  45. def visualProperties: Map[String, String]
    Definition Classes
    BasicBlock → Node
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from CFGNode

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped