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 booleanaddTarget(CallSiteReference reference, CGNode target)This is for use only by call graph builders ...abstract booleanequals(Object obj)IClassHierarchygetClassHierarchy()ContextgetContext()Return thecontextthis CGNode represents.IMethodgetMethod()Return themethodthis CGNode represents.abstract inthashCode()StringtoString()-
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:CGNodeReturn themethodthis CGNode represents. This value will never benull.
-
equals
public abstract boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(Object)
-
hashCode
public abstract int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
getContext
public Context getContext()
Description copied from interface:CGNodeReturn thecontextthis CGNode represents. This value will never benull.- Specified by:
getContextin interfaceCGNode- Returns:
- the Context for this CGNode.
-
addTarget
public abstract boolean addTarget(CallSiteReference reference, CGNode target)
Description copied from interface:CGNodeThis 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:
getClassHierarchyin interfaceIClassHierarchyDweller
-
-