Package org.jtool.pdg
Class CD
- All Implemented Interfaces:
DependencyGraphEdge
An edge represents control dependence (CD) between PDG nodes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jtool.pdg.DependencyGraphEdge
DependencyGraphEdge.Kind
-
Field Summary
Fields inherited from class org.jtool.pdg.Dependence
kind
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets as a declaration edge.void
Sets as an exception catch edge.void
Sets as a fall-through control dependence.void
setFalse()
Sets as a false control dependence.void
setTrue()
Sets as a true control dependence.toString()
Obtains information on this edge.Methods inherited from class org.jtool.pdg.Dependence
equals, equals, getDstId, getDstNode, getKind, getSrcId, getSrcNode, hashCode, isDependence, setKind, sortEdges
Methods inherited from class org.jtool.graph.GraphEdge
equals, equals, setDstNode, setSrcNode, sortGrapgEdge
Methods inherited from class org.jtool.graph.GraphElement
difference, equals, getIdString, intersection, subset, subsetEqual, union
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jtool.pdg.DependencyGraphEdge
getVariable, isCall, isCD, isClassMember, isDD, isDeclaration, isDefOrder, isDefUse, isExceptionCatch, isFallThrough, isFalse, isFieldAccess, isInterPDGEdge, isLCDD, isLIDD, isOutput, isParameterIn, isParameterOut, isSummary, isTrue, isUncoveredFieldAccess
-
Constructor Details
-
CD
Creates a new object that represents a control dependence.- Parameters:
src
- the source nodedst
- 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
Obtains information on this edge.- Overrides:
toString
in classDependence
- Returns:
- the string representing the information
-