Skip to content

Package io.github.qishr.cascara.lang.yaml.ast

Class YamlMapEntryNode

java.lang.Object
        io.github.qishr.cascara.lang.yaml.ast.YamlNode
                io.github.qishr.cascara.lang.yaml.ast.YamlMapEntryNode

All Implemented Interfaces:
    MapEntryAstNode<YamlNode>


public class YamlMapEntryNode
extends YamlNode

Represents the structural pairing of a key and a value.

Constructor Summary

Constructor Description
YamlMapEntryNode(int line, int column, YamlNode key, YamlNode value)
YamlMapEntryNode(YamlNode key, YamlNode value)

Method Summary

Modifier and Type Method Description
public YamlNode getKey()
public YamlNode getValue()
public void setRaw(YamlNode value)
public List<YamlNode> getChildren()

Methods inherited from YamlNode

getEndColumn, getEndLine, getComments, setAnchor, getStartColumn, getToken, getAnchor, equals, addComment, getStartLine, setToken, hashCode

Method Details

getKey

public YamlNode getKey()

Specified By:

MapEntryAstNode


getValue

public YamlNode getValue()

Specified By:

MapEntryAstNode


setRaw

public void setRaw(YamlNode value)


getChildren

public List<YamlNode> getChildren()

Specified By:

MapEntryAstNode