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)
YamlStream(YamlToken token, List<YamlDocument> documents)
YamlStream(YamlToken token, List<YamlDocument> documents, List<YamlComment> comments)

Method Summary

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

Methods inherited from YamlNode

isPreceededByNewLine, getOptions, setFileEndsWithNewLine, getTag, setAnchor, addComments, getStartLine, hashCode, fileEndsWithNewLine, getEndColumn, setTag, addComment, setPreceededByNewLine, getResolvedTag, getToken, getAnchor, getNodeStyle, toString, setNodeStyle, getStartColumn, getSemanticColumn, getEndLine, getComments, getProperties, equals, setResolvedTag, setSemanticColumn

Method Details

addDocument

public void addDocument(YamlDocument document)


getDocuments

public List<YamlDocument> getDocuments()


getDocument

public YamlDocument getDocument(int i)


isEmpty

public boolean isEmpty()


accept

public void accept(YamlVisitor visitor)

Overrides:

YamlNode


getChildren

public List<? extends YamlNode> getChildren()

Overrides:

YamlNode