public class MappingNode extends CollectionNode
A map is a collection of unsorted key-value pairs.
Constructor and Description |
---|
MappingNode(Tag tag,
boolean resolved,
java.util.List<NodeTuple> value,
Mark startMark,
Mark endMark,
java.lang.Boolean flowStyle) |
MappingNode(Tag tag,
java.util.List<NodeTuple> value,
java.lang.Boolean flowStyle) |
Modifier and Type | Method and Description |
---|---|
NodeId |
getNodeId()
For error reporting.
|
java.util.List<NodeTuple> |
getValue()
Returns the entries of this map.
|
boolean |
isMerged() |
void |
setMerged(boolean merged) |
void |
setOnlyKeyType(java.lang.Class<? extends java.lang.Object> keyType) |
void |
setTypes(java.lang.Class<? extends java.lang.Object> keyType,
java.lang.Class<? extends java.lang.Object> valueType) |
void |
setValue(java.util.List<NodeTuple> merge) |
java.lang.String |
toString() |
getFlowStyle, setEndMark, setFlowStyle
equals, getEndMark, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
public MappingNode(Tag tag, boolean resolved, java.util.List<NodeTuple> value, Mark startMark, Mark endMark, java.lang.Boolean flowStyle)
public java.util.List<NodeTuple> getValue()
public void setValue(java.util.List<NodeTuple> merge)
public void setOnlyKeyType(java.lang.Class<? extends java.lang.Object> keyType)
public void setTypes(java.lang.Class<? extends java.lang.Object> keyType, java.lang.Class<? extends java.lang.Object> valueType)
public java.lang.String toString()
toString
in class java.lang.Object
public void setMerged(boolean merged)
merged
- - true if map contains merge nodepublic boolean isMerged()