| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | |
| private final ArrayList | |
| private final Set | |
| private final ArrayList | |
| protected LoadSettings | settings
keep the settings |
| protected final Map | tagConstructors
It maps the (explicit or implicit) tag to the Construct implementation. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| protected Map | Returns: filled Map- the source node)Create filled Map from the provided Node |
| protected void | constructMapping2ndStep(MappingNode
- the source node, Map<Object, Object> - empty map to be filled mapping)Fill the mapping with the data from provided node |
| protected Object | Returns: Java instanceNode to be constructed node)Construct object from the specified Node. |
| protected Object | Returns: instantiated object- the source node)Construct object from the specified Node. |
| protected String | Returns: value of the scalar node- the source node)Create String from the provided scalar node |
| protected List | |
| protected void | constructSequenceStep2(SequenceNode
- the source node, Collection<Object> - the collection to fill collection)Fill the collection with the data from provided node |
| protected Set | Returns: filled Set- the source node)Create instance of Set from mapping node |
| protected void | constructSet2ndStep(MappingNode
- the source node, Set<Object> - empty set to fill set)Fill the Map with the data from the node |
| public Object | Returns: constructed instance- composed Node optionalNode)Ensure that the stream contains a single document and construct it |
| protected List | Returns: empty List to fill- the node to fill the List node)Create List implementation. |
| protected Map | Returns: empty Map to fill- the node to fill the Map node)Create Map implementation. |
| protected Set | Returns: empty Set to fill- the node to fill the Set node)Create Set implementation. |
| private void | |
| protected Optional | Returns: ConstructNode implementation for the specified nodeNode to construct an instance fromSelect |
| protected void | postponeMapFilling(Map<Object, Object>
- the mapping to add key/value mapping, Object - the key to add to map key, Object - the value behind the key value)if keyObject is created it 2 steps we should postpone putting it in map because it may have different hash after initialization compared to clean just created one. |
| protected void | postponeSetFilling(Set<Object>
- the set to add the key set, Object - the item to add to the set key)if keyObject is created it 2 steps we should postpone putting it into the set because it may have different hash after initialization compared to clean just created one. |
| constructedObjects | back to summary |
|---|---|
| pack-priv final Map<Node, Object> constructedObjects | |
| maps2fill | back to summary |
|---|---|
| private final ArrayList<BaseConstructor. | |
| recursiveObjects | back to summary |
|---|---|
| private final Set<Node> recursiveObjects | |
| sets2fill | back to summary |
|---|---|
| private final ArrayList<BaseConstructor. | |
| settings | back to summary |
|---|---|
| protected LoadSettings settings keep the settings | |
| tagConstructors | back to summary |
|---|---|
| protected final Map<Tag, ConstructNode> tagConstructors It maps the (explicit or implicit) tag to the Construct implementation. | |
| BaseConstructor | back to summary |
|---|---|
| public BaseConstructor(LoadSettings settings) Create
| |
| construct | back to summary |
|---|---|
| protected Object construct(Node node) Construct complete YAML document. Call the second step in case of recursive structures. At the end cleans all the state. | |
| constructMapping | back to summary |
|---|---|
| protected Map Create filled Map from the provided Node
| |
| constructMapping2ndStep | back to summary |
|---|---|
| protected void constructMapping2ndStep(MappingNode node, Map<Object, Object> mapping) Fill the mapping with the data from provided node
| |
| constructObject | back to summary |
|---|---|
| protected Object constructObject(Node node) Construct object from the specified Node. Return existing instance if the node is already constructed. | |
| constructObjectNoCheck | back to summary |
|---|---|
| protected Object constructObjectNoCheck(Node node) Construct object from the specified Node. It does not check if existing instance the node is already constructed. | |
| constructScalar | back to summary |
|---|---|
| protected String constructScalar(ScalarNode node) Create String from the provided scalar node
| |
| constructSequence | back to summary |
|---|---|
| protected List Create instance of List
| |
| constructSequenceStep2 | back to summary |
|---|---|
| protected void constructSequenceStep2(SequenceNode node, Collection<Object> collection) Fill the collection with the data from provided node
| |
| constructSet | back to summary |
|---|---|
| protected Set Create instance of Set from mapping node
| |
| constructSet2ndStep | back to summary |
|---|---|
| protected void constructSet2ndStep(MappingNode node, Set<Object> set) Fill the Map with the data from the node
| |
| constructSingleDocument | back to summary |
|---|---|
| public Object constructSingleDocument(Optional<Node> optionalNode) Ensure that the stream contains a single document and construct it | |
| createEmptyListForNode | back to summary |
|---|---|
| protected List Create List implementation. By default, it returns the value configured in the settings in getDefaultList(). Any custom List implementation can be provided.
| |
| createEmptyMapFor | back to summary |
|---|---|
| protected Map Create Map implementation. By default, it returns the value configured in the settings in getDefaultMap(). Any custom Map implementation can be provided.
| |
| createEmptySetForNode | back to summary |
|---|---|
| protected Set Create Set implementation. By default, it returns the value configured in the settings in getDefaultSet(). Any custom Set implementation can be provided.
| |
| fillRecursive | back to summary |
|---|---|
| private void fillRecursive() | |
| findConstructorFor | back to summary |
|---|---|
| protected Optional Select
| |
| postponeMapFilling | back to summary |
|---|---|
| protected void postponeMapFilling(Map<Object, Object> mapping, Object key, Object value) if keyObject is created it 2 steps we should postpone putting it in map because it may have different hash after initialization compared to clean just created one. And map of course does not observe key hashCode changes. | |
| postponeSetFilling | back to summary |
|---|---|
| protected void postponeSetFilling(Set<Object> set, Object key) if keyObject is created it 2 steps we should postpone putting it into the set because it may have different hash after initialization compared to clean just created one. And set of course does not observe value hashCode changes. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public K |
| value1 | back to summary |
|---|---|
| private final T value1 | |
| value2 | back to summary |
|---|---|
| private final K value2 | |
| RecursiveTuple | back to summary |
|---|---|
| public RecursiveTuple(T value1, K value2) | |
| getValue1 | back to summary |
|---|---|
| public T getValue1() | |
| getValue2 | back to summary |
|---|---|
| public K getValue2() | |