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) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public void | addDirective(YamlDirective directive) | |
| public List<YamlDirective> | getDirectives() | |
| public YamlNode | getBody() | |
| public void | setBody(YamlNode body) | |
| public void | accept(YamlVisitor visitor) | |
| public List<YamlNode> | getChildren() |
Methods inherited from YamlNode
getNodeStyle, getOptions, getTag, setAnchor, getStartColumn, addComments, getStartLine, hashCode, getEndColumn, getEndLine, getComments, setTag, setNodeStyle, addComment, getToken, getAnchor, equals
Method Details
addDirective
public void addDirective(YamlDirective directive)
getDirectives
public List<YamlDirective> getDirectives()
getBody
public YamlNode getBody()
setBody
public void setBody(YamlNode body)
accept
public void accept(YamlVisitor visitor)
Overrides:
getChildren
public List<YamlNode> getChildren()
Overrides: