com.vaadin.flow.internal.change.
Class NodeChange
All Implemented Interfaces:
Direct Known Subclasses:
Base class describing a change to a state node.
For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNode()
Gets the changed node.
protected abstract void
populateJson
(elemental.json.JsonObject json, ConstantPool constantPool) Overridden by subclasses to populate a JSON object when serializing.
elemental.json.JsonObject
toJson
(ConstantPool constantPool) Serializes this change to JSON.
-
Constructor Details
-
NodeChange
Creates a new change for the given node.
Parameters:
node
- the changed node
-
-
Method Details
-
getNode
Gets the changed node.
Returns:
the node
-
toJson
Serializes this change to JSON.
Parameters:
constantPool
- the constant pool to use for serializing constant pool referencesReturns:
a json representation of this change
-
populateJson
Overridden by subclasses to populate a JSON object when serializing.
Parameters:
json
- the json object to populateconstantPool
- the constant pool to use for serializing constant pool references
-