Class MappingNode
Represents a map.
A map is a collection of unsorted key-value pairs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CollectionNode
getFlowStyle, setEndMark, setFlowStyleMethods inherited from class Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTag
-
Field Details
-
value
-
-
Constructor Details
-
MappingNode
public MappingNode(Tag tag, boolean resolved, List<NodeTuple> value, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark) Create- Parameters:
tag- - tag of the noderesolved- - true when the tag is implicitly resolvedvalue- - the valueflowStyle- - the flow style of the nodestartMark- - startendMark- - end
-
MappingNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- scalar, sequence, mapping
-
getValue
Returns the entries of this map.- Specified by:
getValuein classCollectionNode<NodeTuple>- Returns:
- List of entries.
-
setValue
-
toString
-