ConstructNode

interface ConstructNode

Provide a way to construct an instance from the composed Node. Support recursive objects if it is required. (create Native Data Structure out of Node Graph) (this is the opposite for Represent)

See also

Inheritors

Functions

Link copied to clipboard
abstract fun construct(node: Node?): Any?

Construct an instance, with all the properties injected when it is possible.

Link copied to clipboard
open fun constructRecursive(node: Node, object: Any)

Apply the second step when constructing recursive structures. Because the instance is already created it can assign a reference to itself. (no need to implement this method for non-recursive data structures). Fails with a reminder to provide the second step for a recursive structure