Skip to content

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

Class YamlCommentNode

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

All Implemented Interfaces:
    CommentAstNode


public class YamlCommentNode
extends YamlNode

Represents a comment within the YAML source.

Constructor Summary

Constructor Description
YamlCommentNode(int line, int column, String text, boolean multiLine)

Method Summary

Modifier and Type Method Description
public String asString()
public boolean isMultiLine()
public List<YamlNode> getChildren()
public String getRaw()

Methods inherited from YamlNode

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

Method Details

asString

public String asString()

Specified By:

CommentAstNode


isMultiLine

public boolean isMultiLine()

Specified By:

CommentAstNode


getChildren

public List<YamlNode> getChildren()


getRaw

public String getRaw()

Specified By:

CommentAstNode