Package com.ibm.wala.ipa.callgraph.impl
Class BasicCallGraph.NodeImpl
- java.lang.Object
-
- com.ibm.wala.util.graph.impl.NodeWithNumber
-
- com.ibm.wala.ipa.callgraph.impl.BasicCallGraph.NodeImpl
-
- All Implemented Interfaces:
CGNode
,ContextItem
,IClassHierarchyDweller
,INodeWithNumber
- Direct Known Subclasses:
ExplicitCallGraph.ExplicitNode
- Enclosing class:
- BasicCallGraph<T>
public abstract class BasicCallGraph.NodeImpl extends NodeWithNumber implements CGNode
A class that represents the a normal node in a call graph.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.wala.ipa.callgraph.ContextItem
ContextItem.Value<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
addTarget(CallSiteReference reference, CGNode target)
This is for use only by call graph builders ...abstract boolean
equals(Object obj)
IClassHierarchy
getClassHierarchy()
Context
getContext()
Return thecontext
this CGNode represents.IMethod
getMethod()
Return themethod
this CGNode represents.abstract int
hashCode()
String
toString()
-
Methods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber
getGraphNodeId, setGraphNodeId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.wala.ipa.callgraph.CGNode
getDU, getIR, iterateCallSites, iterateNewSites
-
Methods inherited from interface com.ibm.wala.util.graph.INodeWithNumber
getGraphNodeId, setGraphNodeId
-
-
-
-
Field Detail
-
method
protected final IMethod method
The method this node represents.
-
-
Method Detail
-
getMethod
public IMethod getMethod()
Description copied from interface:CGNode
Return themethod
this CGNode represents. This value will never benull
.
-
equals
public abstract boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
getContext
public Context getContext()
Description copied from interface:CGNode
Return thecontext
this CGNode represents. This value will never benull
.- Specified by:
getContext
in interfaceCGNode
- Returns:
- the Context for this CGNode.
-
addTarget
public abstract boolean addTarget(CallSiteReference reference, CGNode target)
Description copied from interface:CGNode
This is for use only by call graph builders ... not by the general public. Clients should not use this. Record that a particular call site might resolve to a call to a particular target node. Returns true if this is a new target
-
getClassHierarchy
public IClassHierarchy getClassHierarchy()
- Specified by:
getClassHierarchy
in interfaceIClassHierarchyDweller
-
-