public class ParameterList extends OwnedNode<com.github.javaparser.ast.Node>
DataFlowMethod. Every method has at most one ParameterList. A parameter list can also exist outside
of a method when it is constructed to represent a call to another method. It can have input or output edges to other ParameterLists representing a
call from/to another location. With this class you can distinguish which variables where used as input for a method at a specific call.| Modifier and Type | Class and Description |
|---|---|
static class |
ParameterList.Builder
Builder to build
ParameterList. |
name| Constructor and Description |
|---|
ParameterList(List<DataFlowNode> inputParameters,
DataFlowMethod method) |
ParameterList(OwnedNode<?> method) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DataFlowNode node) |
void |
addAll(List<DataFlowNode> inputParameters) |
static ParameterList.Builder |
builder()
Creates builder to build
ParameterList. |
void |
clear() |
void |
connectTo(ParameterList otherParams) |
boolean |
contains(DataFlowNode dfn) |
boolean |
equals(Object obj) |
List<DataFlowNode> |
getNodes() |
Optional<OwnedNode<?>> |
getOwner() |
List<DataFlowNode> |
getParameters() |
int |
hashCode() |
int |
nofNodes() |
void |
setOwnerAndName(OwnedNode<?> owner) |
void |
setParameters(List<DataFlowNode> parameters) |
String |
toString() |
getName, getRepresentedNode, setName, setRepresentedNodepublic ParameterList(OwnedNode<?> method)
public ParameterList(List<DataFlowNode> inputParameters, DataFlowMethod method)
public Optional<OwnedNode<?>> getOwner()
getOwner in class OwnedNode<com.github.javaparser.ast.Node>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 final void setOwnerAndName(OwnedNode<?> owner)
public List<DataFlowNode> getParameters()
public void setParameters(List<DataFlowNode> parameters)
public final void add(DataFlowNode node)
public void clear()
public final void addAll(List<DataFlowNode> inputParameters)
public boolean contains(DataFlowNode dfn)
public List<DataFlowNode> getNodes()
public int nofNodes()
public void connectTo(ParameterList otherParams)
public int hashCode()
hashCode in class NodeRepresenter<com.github.javaparser.ast.Node>public boolean equals(Object obj)
equals in class NodeRepresenter<com.github.javaparser.ast.Node>public static ParameterList.Builder builder()
ParameterList.public String toString()
toString in class NodeRepresenter<com.github.javaparser.ast.Node>Copyright © 2019. All rights reserved.