Package org.jtool.pdg
Class InterPDGEdge
java.lang.Object
org.jtool.pdg.InterPDGEdge
- All Implemented Interfaces:
DependencyGraphEdge
- Direct Known Subclasses:
InterPDGCD
,InterPDGDD
A dependence edge connecting two nodes in different PDGs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jtool.pdg.DependencyGraphEdge
DependencyGraphEdge.Kind
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInterPDGEdge
(PDGNode src, PDGNode dst) Creates a new object that represents an edge connecting two nodes in different PDGs. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equals
(InterPDGEdge edge) Tests if a given edge is equal to this edge.long
getDstId()
Returns the identification number of the destination node of this edge.Returns the destination node for this edge.getKind()
Returns the kind of this dependence edge.long
getSrcId()
Returns the identification number of the source node of this edge.Returns the source node for this edge.int
hashCode()
boolean
Tests if this edge represents an edge connecting two nodes in different PDGs.void
setCall()
Sets as a call edge.void
Sets as an edge between class and its member.void
Sets as an exception catch edge.void
Sets as a field access dependence.void
Sets the kind of this dependence edge.void
Sets as a parameter-in dependence.void
Sets as a parameter-out dependence.void
Sets as a summary data dependence.void
Sets as an uncovered field access dependence.toString()
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, isDependence, isExceptionCatch, isFallThrough, isFalse, isFieldAccess, isLCDD, isLIDD, isOutput, isParameterIn, isParameterOut, isSummary, isTrue, isUncoveredFieldAccess
-
Field Details
-
kind
The kind of this edge. -
src
The source node of this edge. -
dst
The destination node of this edge.
-
-
Constructor Details
-
InterPDGEdge
Creates a new object that represents an edge connecting two nodes in different PDGs.- Parameters:
src
- the source node of this edgedst
- the destination node of this edge
-
-
Method Details
-
isInterPDGEdge
public boolean isInterPDGEdge()Tests if this edge represents an edge connecting two nodes in different PDGs.- Specified by:
isInterPDGEdge
in interfaceDependencyGraphEdge
- Returns:
true
if this is a connecting edge, otherwisefalse
-
getSrcId
public long getSrcId()Returns the identification number of the source node of this edge.- Specified by:
getSrcId
in interfaceDependencyGraphEdge
- Returns:
- the identification number of the source node
-
getDstId
public long getDstId()Returns the identification number of the destination node of this edge.- Specified by:
getDstId
in interfaceDependencyGraphEdge
- Returns:
- the identification number of the destination node
-
getSrcNode
Returns the source node for this edge.- Specified by:
getSrcNode
in interfaceDependencyGraphEdge
- Returns:
- the source node
-
getDstNode
Returns the destination node for this edge.- Specified by:
getDstNode
in interfaceDependencyGraphEdge
- Returns:
- the destination node
-
setKind
Sets the kind of this dependence edge. This method is not intended to be invoked by clients.- Specified by:
setKind
in interfaceDependencyGraphEdge
- Parameters:
kind
- the kind of the dependence edge
-
getKind
Returns the kind of this dependence edge.- Specified by:
getKind
in interfaceDependencyGraphEdge
- Returns:
- the kind of the edge
-
setClassMember
public void setClassMember()Sets as an edge between class and its member. -
setCall
public void setCall()Sets as a call edge. -
setExceptionCatch
public void setExceptionCatch()Sets as an exception catch edge. -
setParameterIn
public void setParameterIn()Sets as a parameter-in dependence. -
setParameterOut
public void setParameterOut()Sets as a parameter-out dependence. -
setFieldAccess
public void setFieldAccess()Sets as a field access dependence. -
setUncoveredFieldAccess
public void setUncoveredFieldAccess()Sets as an uncovered field access dependence. -
setSummary
public void setSummary()Sets as a summary data dependence. -
equals
-
equals
Tests if a given edge is equal to this edge.- Parameters:
edge
- the edge to be checked- Returns:
- the
true
if the given edge is equal to this edge
-
hashCode
public int hashCode() -
toString
-