public abstract class OwnedNode<T extends com.github.javaparser.ast.Node> extends NodeRepresenter<T>
DataFlowGraph classes that own one or more DataFlowNodes. This interface contains a self reference since a node can be owned by
a DataFlowMethod, and that method can then be owned by a graph.NodeRepresenter.Builder<T extends com.github.javaparser.ast.Node,S extends NodeRepresenter.Builder<T,?>>name| Modifier | Constructor and Description |
|---|---|
protected |
OwnedNode() |
|
OwnedNode(NodeRepresenter.Builder<T,?> builder) |
|
OwnedNode(String name) |
|
OwnedNode(String name,
T representedNode) |
|
OwnedNode(T representedNode) |
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<OwnedNode<?>> |
getOwner() |
builder, equals, getName, getRepresentedNode, hashCode, setName, setRepresentedNode, toStringprotected OwnedNode()
public OwnedNode(T representedNode)
public OwnedNode(NodeRepresenter.Builder<T,?> builder)
public OwnedNode(String name)
public abstract Optional<OwnedNode<?>> getOwner()
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.Copyright © 2019. All rights reserved.