Package org.jtool.pdg

Class InterPDGDD

All Implemented Interfaces:
DependencyGraphEdge

public class InterPDGDD extends InterPDGEdge
A data dependence edge connecting two nodes in different PDGs.
  • Constructor Details

    • InterPDGDD

      public InterPDGDD(PDGNode src, PDGNode dst, JVariableReference jv)
      Creates a new object that represents an edge with respect to data flow.
      Parameters:
      src - the source node of this edge
      dst - the destination node of this edge
      jv - the variable related to this data dependence
    • InterPDGDD

      public InterPDGDD(PDGNode src, PDGNode dst)
      Creates a new object that represents an edge with respect to data flow.
      Parameters:
      src - the source node of this edge
      dst - the destination node of this edge
  • Method Details

    • getVariable

      public JVariableReference getVariable()
      Returns the variable related to this data dependence. The value of a variable defined in the source node reaches that used in the destination node.
      Returns:
      the variable storing the passed value
    • setParameterIn

      public void setParameterIn()
      Sets as a parameter-in dependence.
      Overrides:
      setParameterIn in class InterPDGEdge
    • setParameterOut

      public void setParameterOut()
      Sets as a parameter-out dependence.
      Overrides:
      setParameterOut in class InterPDGEdge
    • setFieldAccess

      public void setFieldAccess()
      Sets as a field access dependence.
      Overrides:
      setFieldAccess in class InterPDGEdge
    • setUncoveredFieldAccess

      public void setUncoveredFieldAccess()
      Sets as an uncovered field access dependence.
      Overrides:
      setUncoveredFieldAccess in class InterPDGEdge
    • setSummary

      public void setSummary()
      Sets as a summary data dependence.
      Overrides:
      setSummary in class InterPDGEdge
    • toString

      public String toString()
      Overrides:
      toString in class InterPDGEdge