public class EconomicSetNodeEventListener extends Graph.NodeEventListener
Graph.NodeEventListener implementation that accumulates event nodes in a
EconomicSet.| Constructor and Description |
|---|
EconomicSetNodeEventListener()
Creates a
Graph.NodeEventListener that collects nodes from all events. |
EconomicSetNodeEventListener(Set<Graph.NodeEvent> filter)
Creates a
Graph.NodeEventListener that collects nodes from all events that match a given
filter. |
| Modifier and Type | Method and Description |
|---|---|
void |
changed(Graph.NodeEvent e,
Node node)
Notifies this listener about any change event in the graph.
|
EconomicSetNodeEventListener |
exclude(Graph.NodeEvent e)
Excludes a given event from those for which nodes are collected.
|
org.graalvm.collections.EconomicSet<Node> |
getNodes()
Gets the set being used to accumulate the nodes communicated to this listener.
|
afterDecodingFields, beforeDecodingFields, inputChanged, nodeAdded, nodeRemoved, usagesDroppedToZeropublic EconomicSetNodeEventListener()
Graph.NodeEventListener that collects nodes from all events.public EconomicSetNodeEventListener(Set<Graph.NodeEvent> filter)
Graph.NodeEventListener that collects nodes from all events that match a given
filter.public EconomicSetNodeEventListener exclude(Graph.NodeEvent e)
public void changed(Graph.NodeEvent e, Node node)
Graph.NodeEventListenerchanged in class Graph.NodeEventListenere - an eventnode - the node related to epublic org.graalvm.collections.EconomicSet<Node> getNodes()