public class DataFlowMethod extends OwnerNode<com.github.javaparser.ast.body.CallableDeclaration<?>>
DataFlowGraph.| Modifier and Type | Class and Description |
|---|---|
static class |
DataFlowMethod.Builder
Builder to build
DataFlowMethod. |
name| Modifier | Constructor and Description |
|---|---|
|
DataFlowMethod(DataFlowGraph graph,
com.github.javaparser.ast.body.CallableDeclaration<?> node,
String name) |
protected |
DataFlowMethod(DataFlowMethod.Builder builder) |
|
DataFlowMethod(String name,
com.github.javaparser.ast.body.CallableDeclaration<?> representedNode) |
getOwnedNodes, ownsgetName, getRepresentedNode, setName, setRepresentedNodepublic DataFlowMethod(String name, com.github.javaparser.ast.body.CallableDeclaration<?> representedNode)
public DataFlowMethod(DataFlowGraph graph, com.github.javaparser.ast.body.CallableDeclaration<?> node, String name)
protected DataFlowMethod(DataFlowMethod.Builder builder)
public Optional<DataFlowNode> getReturnNode()
public final void setReturnNode(DataFlowNode returnNode)
public ParameterList getInputParameters()
public final void setInputParameters(ParameterList inputParameters)
public List<DataFlowNode> getInputFields()
public void setInputFields(List<DataFlowNode> inputFields)
public List<DataFlowNode> getChangedFields()
public void setChangedFields(List<DataFlowNode> changedFields)
public Optional<OwnedNode<?>> getOwner()
getOwner in class OwnedNode<com.github.javaparser.ast.body.CallableDeclaration<?>>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 DataFlowGraph getGraph()
public void setGraph(DataFlowGraph graph)
public Collection<DataFlowNode> getNodes()
public final void addNodes(List<DataFlowNode> nodes)
public final void addNode(DataFlowNode created)
public DataFlowNode getNode(com.github.javaparser.ast.Node node)
public void addParameter(DataFlowNode node)
public void addChangedField(DataFlowNode node)
public void addChangedFields(DataFlowNode... fields)
public List<NodeCall> getNodeCalls()
DataFlowMethods containing both the input and output methods.public void addMethodCall(NodeCall calledMethod)
public Set<OwnerNode<?>> getOwnedOwners()
OwnerNode for which it holds thatpublic Collection<DataFlowNode> getDirectOwnedNodes()
DataFlowNodes directly owned by this OwnerNode.public boolean isInputBoundary(DataFlowNode n)
public List<DataFlowNode> getDirectInputNodesFor(DataFlowNode node)
node - The node to get the direct input nodes for.DataFlowNodepublic String toString()
toString in class NodeRepresenter<com.github.javaparser.ast.body.CallableDeclaration<?>>public static DataFlowMethod.Builder builder()
DataFlowMethod.public int hashCode()
hashCode in class NodeRepresenter<com.github.javaparser.ast.body.CallableDeclaration<?>>public boolean equals(Object obj)
equals in class NodeRepresenter<com.github.javaparser.ast.body.CallableDeclaration<?>>Copyright © 2019. All rights reserved.