Class CallGraphEdge
- java.lang.Object
-
- it.unive.lisa.interprocedural.callgraph.CallGraphEdge
-
- All Implemented Interfaces:
Edge<CallGraph,CallGraphNode,CallGraphEdge>
public class CallGraphEdge extends java.lang.Object implements Edge<CallGraph,CallGraphNode,CallGraphEdge>
An edge between twoCallGraphNode
s in aBaseCallGraph
.
-
-
Constructor Summary
Constructors Constructor Description CallGraphEdge(CallGraphNode source, CallGraphNode destination)
Build the edge.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> boolean
accept(GraphVisitor<CallGraph,CallGraphNode,CallGraphEdge,V> visitor, V tool)
Accepts the givenGraphVisitor
.boolean
equals(java.lang.Object obj)
CallGraphNode
getDestination()
Yields the node where this edge ends.CallGraphNode
getSource()
Yields the node where this edge originates.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CallGraphEdge
public CallGraphEdge(CallGraphNode source, CallGraphNode destination)
Build the edge.- Parameters:
source
- the source nodedestination
- the destination node
-
-
Method Detail
-
getSource
public CallGraphNode getSource()
Description copied from interface:Edge
Yields the node where this edge originates.- Specified by:
getSource
in interfaceEdge<CallGraph,CallGraphNode,CallGraphEdge>
- Returns:
- the source node
-
getDestination
public CallGraphNode getDestination()
Description copied from interface:Edge
Yields the node where this edge ends.- Specified by:
getDestination
in interfaceEdge<CallGraph,CallGraphNode,CallGraphEdge>
- Returns:
- the destination node
-
accept
public <V> boolean accept(GraphVisitor<CallGraph,CallGraphNode,CallGraphEdge,V> visitor, V tool)
Description copied from interface:Edge
Accepts the givenGraphVisitor
. Implementors of this method are responsible for invokingGraphVisitor.visit(Object, Graph, Edge)
on this edge. The visiting should stop if such call returnsfalse
.- Specified by:
accept
in interfaceEdge<CallGraph,CallGraphNode,CallGraphEdge>
- Type Parameters:
V
- the type of auxiliary tool thatvisitor
can use- Parameters:
visitor
- the visitor that is visiting theGraph
containing this edgetool
- the auxiliary tool thatvisitor
can use- Returns:
- whether or not the visiting should stop when this call returns, as decided by the visitor itself
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-