public class DataFlowGraph extends OwnerNode<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>
DataFlowNodes represent variables. An DataFlowEdge goes from node a to b iff a
influences the state of b. Conditional statements are not supported in the current implementation.| Modifier and Type | Class and Description |
|---|---|
static class |
DataFlowGraph.Builder
Builder to build
DataFlowGraph. |
name| Constructor and Description |
|---|
DataFlowGraph() |
getOwnedNodes, ownsequals, getName, getRepresentedNode, hashCode, setName, setRepresentedNodepublic List<DataFlowNode> getFields()
public void setFields(List<DataFlowNode> fields)
public List<DataFlowMethod> getConstructors()
public void setConstructors(List<DataFlowMethod> constructors)
public Collection<DataFlowMethod> getMethods()
public Map<com.github.javaparser.ast.Node,DataFlowMethod> getMethodMap()
public void setMethods(List<DataFlowMethod> methods)
public void addMethod(DataFlowMethod method)
public DataFlowMethod getMethod(com.github.javaparser.ast.Node node)
public final void addField(DataFlowNode node)
public final void addFields(DataFlowNode... fields)
public void addNodes(List<DataFlowNode> nodes)
public void addNode(DataFlowNode node)
public DataFlowNode getNode(com.github.javaparser.ast.Node node)
public Map<com.github.javaparser.ast.Node,DataFlowNode> getNodes()
public Map<String,DataFlowGraph> getDependedGraphs()
public DataFlowGraph getDependedGraph(String path)
public void setDependedGraphs(Map<String,DataFlowGraph> dependedGraphs)
public void addDependedGraph(DataFlowGraph graph)
public String getClassPackage()
public void setClassPackage(String classPackage)
public Optional<OwnedNode<?>> getOwner()
getOwner in class OwnedNode<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>OwnedNode of this node. The optional will be empty in case of a DataFlowGraph representing a non inner class or
a method for which the rest of the graph was not parsed.public String toString()
toString in class NodeRepresenter<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>public static DataFlowGraph.Builder builder()
DataFlowGraph.Copyright © 2019. All rights reserved.