public class CallGraphSnippet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,CallSite> |
asts
Map of the AST node details for each AST_NODE in the graph snippet.
|
private java.util.List<CallGraphLink> |
links
List of the links in the graph snippet.
|
private java.util.List<CallGraphNode> |
nodes
List of the nodes in the graph snippet.
|
private java.lang.String[] |
rootList
The list of root program files used to build the graph snippet.
|
Constructor and Description |
---|
CallGraphSnippet(java.util.List<CallGraphNode> nodes,
java.util.List<CallGraphLink> links,
java.util.Map<java.lang.String,CallSite> asts,
java.lang.String[] rootList)
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,CallSite> |
getAsts()
Obtain the map of the AST details for the graph snippet.
|
java.util.List<CallGraphLink> |
getLinks()
Obtain the list of the links in the graph snippet.
|
java.util.List<CallGraphNode> |
getNodes()
Obtain the list of the nodes in the graph snippet.
|
java.lang.String[] |
getRootList()
Obtain the list of root program files used to generate the graph snippet.
|
void |
setAsts(java.util.Map<java.lang.String,CallSite> asts)
Set the map of the AST details for the graph snippet.
|
void |
setLinks(java.util.List<CallGraphLink> links)
Set the list of the links in the graph snippet.
|
void |
setNodes(java.util.List<CallGraphNode> nodes)
Set the list of the nodes in the graph snippet.
|
void |
setRootList(java.lang.String[] rootList)
Set the list of root program files used to generate the graph snippet.
|
private java.util.List<CallGraphNode> nodes
private java.util.List<CallGraphLink> links
private java.util.Map<java.lang.String,CallSite> asts
private java.lang.String[] rootList
public CallGraphSnippet(java.util.List<CallGraphNode> nodes, java.util.List<CallGraphLink> links, java.util.Map<java.lang.String,CallSite> asts, java.lang.String[] rootList)
nodes
- List of the nodes in the graph snippet.links
- List of the links in the graph snippet.asts
- Map of the AST node details for each AST_NODE in the graph snippet.public java.util.List<CallGraphNode> getNodes()
public void setNodes(java.util.List<CallGraphNode> nodes)
nodes
- The new list of nodes.public java.util.List<CallGraphLink> getLinks()
public void setLinks(java.util.List<CallGraphLink> links)
links
- The new list of links.public java.util.Map<java.lang.String,CallSite> getAsts()
public void setAsts(java.util.Map<java.lang.String,CallSite> asts)
asts
- Map of the AST node details for each AST_NODE in the graph snippet.public java.lang.String[] getRootList()
public void setRootList(java.lang.String[] rootList)
rootList
- The root program files used to generate the graph snippet.