Skip to content

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

Class YamlStream

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


public class YamlStream
extends YamlNode

Constructor Summary

Constructor Description
YamlStream()
YamlStream(YamlToken token)

Method Summary

Modifier and Type Method Description
public void addDocument(YamlDocument document)
public List<YamlDocument> getDocuments()
public List<YamlComment> getComments()
public boolean isEmpty()
public void accept(YamlVisitor visitor)
public List<? extends YamlNode> getChildren()

Methods inherited from YamlNode

getNodeStyle, getOptions, getTag, setAnchor, getStartColumn, addComments, getStartLine, hashCode, getEndColumn, getEndLine, setTag, setNodeStyle, addComment, getToken, getAnchor, equals

Method Details

addDocument

public void addDocument(YamlDocument document)


getDocuments

public List<YamlDocument> getDocuments()


getComments

public List<YamlComment> getComments()


isEmpty

public boolean isEmpty()


accept

public void accept(YamlVisitor visitor)

Overrides:

YamlNode


getChildren

public List<? extends YamlNode> getChildren()

Overrides:

YamlNode