public class MappingNode extends CollectionNode<NodeTuple>
A map is a collection of unsorted key-value pairs.
| Constructor and Description |
|---|
MappingNode(Tag tag,
boolean resolved,
List<NodeTuple> value,
FlowStyle flowStyle,
Optional<Mark> startMark,
Optional<Mark> endMark) |
MappingNode(Tag tag,
List<NodeTuple> value,
FlowStyle flowStyle) |
| Modifier and Type | Method and Description |
|---|---|
NodeType |
getNodeType() |
List<NodeTuple> |
getValue()
Returns the entries of this map.
|
void |
setValue(List<NodeTuple> mergedValue) |
String |
toString() |
getFlowStyle, setEndMark, setFlowStyleequals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTagpublic MappingNode(Tag tag, boolean resolved, List<NodeTuple> value, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)
public NodeType getNodeType()
getNodeType in class Nodepublic List<NodeTuple> getValue()
getValue in class CollectionNode<NodeTuple>Copyright © 2018–2022. All rights reserved.