Package org.jtool.pdg

Class CD

All Implemented Interfaces:
DependencyGraphEdge

public class CD extends Dependence
An edge represents control dependence (CD) between PDG nodes.
  • Constructor Details

    • CD

      public CD(PDGNode src, PDGNode dst)
      Creates a new object that represents a control dependence.
      Parameters:
      src - the source node
      dst - destination node
  • Method Details

    • setTrue

      public void setTrue()
      Sets as a true control dependence.
    • setFalse

      public void setFalse()
      Sets as a false control dependence.
    • setFallThrough

      public void setFallThrough()
      Sets as a fall-through control dependence.
    • setDeclaration

      public void setDeclaration()
      Sets as a declaration edge.
    • setExceptionCatch

      public void setExceptionCatch()
      Sets as an exception catch edge.
    • toString

      public String toString()
      Obtains information on this edge.
      Overrides:
      toString in class Dependence
      Returns:
      the string representing the information