Packages

o

org.opalj.tac

DefSites

object DefSites

Extractor to get the definition site of an expression's/statement's value.

This extractor may fail (i.e., throw an exception), when the expr is not a DVar or a Const; this decision was made to capture programming failures as early as possible (flat).

Source
DUVar.scala
Example:
  1. To get a return value's definition sites (unless the value is constant).

    val tac.ReturnValue(pc,tac.DefSites(defSites)) = code.stmts(5)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefSites
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def toString(defSites: IntTrieSet): Iterator[String]
  2. def unapply(valueExpr: Expr[DUVar[_]]): Some[IntTrieSet]

    Defines an extractor to get the definition site of an expression's/statement's value.

    Defines an extractor to get the definition site of an expression's/statement's value. Returns the empty set if the value is a constant.