Package com.ibm.wala.ipa.callgraph
Interface CGNode
-
- All Superinterfaces:
ContextItem
,IClassHierarchyDweller
,INodeWithNumber
- All Known Implementing Classes:
AstCallGraph.AstCGNode
,BasicCallGraph.NodeImpl
,DelegatingExplicitCallGraph.DelegatingCGNode
,ExplicitCallGraph.ExplicitNode
public interface CGNode extends INodeWithNumber, ContextItem, IClassHierarchyDweller
Basic interface for a 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 Deprecated Methods Modifier and Type Method Description boolean
addTarget(CallSiteReference site, CGNode target)
Deprecated.Context
getContext()
Return thecontext
this CGNode represents.DefUse
getDU()
IR
getIR()
IMethod
getMethod()
Return themethod
this CGNode represents.Iterator<CallSiteReference>
iterateCallSites()
Iterator<NewSiteReference>
iterateNewSites()
-
Methods inherited from interface com.ibm.wala.ipa.cha.IClassHierarchyDweller
getClassHierarchy
-
Methods inherited from interface com.ibm.wala.util.graph.INodeWithNumber
getGraphNodeId, setGraphNodeId
-
-
-
-
Method Detail
-
getMethod
IMethod getMethod()
Return themethod
this CGNode represents. This value will never benull
.- Returns:
- the target IMethod for this CGNode.
-
getContext
Context getContext()
Return thecontext
this CGNode represents. This value will never benull
.- Returns:
- the Context for this CGNode.
-
addTarget
@Deprecated boolean addTarget(CallSiteReference site, CGNode target)
Deprecated.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
-
getIR
IR getIR()
- Returns:
- the "default" IR for this node used by the governing call graph
-
getDU
DefUse getDU()
- Returns:
- DefUse for the "default" IR for this node used by the governing call graph
-
iterateNewSites
Iterator<NewSiteReference> iterateNewSites()
- Returns:
- an Iterator of the types that may be allocated by a given method in a given context.
-
iterateCallSites
Iterator<CallSiteReference> iterateCallSites()
- Returns:
- an Iterator of the call statements that may execute in a given method for a given context
-
-