blob: 1913e5c1ffb1606bec807dd365e166d7e528707b [file] [log] [blame]
/*
* See LICENSE file in distribution for copyright and licensing information.
*/
package org.yaml.snakeyaml.constructor;
import org.yaml.snakeyaml.nodes.Node;
/**
* Provide a way to construct a Java instance out of the composed Node. Support
* recursive objects if it is required. (create Native Data Structure out of
* Node Graph)
*
* @see http://yaml.org/spec/1.1/#id859109
*/
public interface Construct {
/**
* Construct a Java instance with all the properties injected when it is
* possible.
*
* @param node
* - composed Node
* @return a complete Java instance
*/
public Object construct(Node node);
}