Skip to content

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

Class YamlDocument

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


public class YamlDocument
extends YamlNode

Constructor Summary

Constructor Description
YamlDocument(YamlToken token)
YamlDocument(YamlToken token, YamlNode body, List<YamlDirective> directives)

Method Summary

Modifier and Type Method Description
public void addDirective(YamlDirective directive)
public List<YamlDirective> getDirectives()
public List<YamlTagDirective> getTagsDirectives()
public YamlDirective getYamlDirective()
public YamlNode getBody()
public void setBody(YamlNode body)
public boolean hasEndMarker()
public void setHasEndMarker(boolean b)
public boolean hasStartMarker()
public void setHasStartMarker(boolean b)
public void accept(YamlVisitor visitor)
public List<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

addDirective

public void addDirective(YamlDirective directive)


getDirectives

public List<YamlDirective> getDirectives()


getTagsDirectives

public List<YamlTagDirective> getTagsDirectives()


getYamlDirective

public YamlDirective getYamlDirective()


getBody

public YamlNode getBody()


setBody

public void setBody(YamlNode body)


hasEndMarker

public boolean hasEndMarker()


setHasEndMarker

public void setHasEndMarker(boolean b)


hasStartMarker

public boolean hasStartMarker()


setHasStartMarker

public void setHasStartMarker(boolean b)


accept

public void accept(YamlVisitor visitor)

Overrides:

YamlNode


getChildren

public List<YamlNode> getChildren()

Overrides:

YamlNode