Enum Class Graph.NodeEvent
- All Implemented Interfaces:
Serializable
,Comparable<Graph.NodeEvent>
,Constable
- Enclosing class:
Graph
The type of events sent to a
Graph.NodeEventListener
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGraph decoding (partial evaluation) may create nodes adding them to the graph in a "stub" form before filling any node fields.Graph decoding (partial evaluation) may create nodes adding them to the graph in a "stub" form before filling any node fields.A node's input is changed.A node was added to a graph.A node was removed from the graph.A node's usages count dropped to zero. -
Method Summary
Modifier and TypeMethodDescriptionstatic Graph.NodeEvent
Returns the enum constant of this class with the specified name.static Graph.NodeEvent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INPUT_CHANGED
A node's input is changed. -
ZERO_USAGES
A node's usages count dropped to zero. -
NODE_ADDED
A node was added to a graph. -
NODE_REMOVED
A node was removed from the graph. -
BEFORE_DECODING_FIELDS
Graph decoding (partial evaluation) may create nodes adding them to the graph in a "stub" form before filling any node fields. We want to observe these events as well. This event is triggered before a "stub" node's fields are decoded and initialized. -
AFTER_DECODING_FIELDS
Graph decoding (partial evaluation) may create nodes adding them to the graph in a "stub" form before filling any node fields. We want to observe these events as well. This event is triggered after a "stub" node's fields are decoded and populated i.e. when the node is no longer a stub.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-