Skip to content

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

Class YamlAnchor

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


public class YamlAnchor
extends YamlNode

Constructor Summary

Constructor Description
YamlAnchor(int line, int column, String name, YamlNode node)

Method Summary

Modifier and Type Method Description
public String getAnchorName()
public YamlNode getInnerNode()
public List<YamlNode> getChildren() Implementation-specific nodes must return their constituent children. For example, a Map node returns its entries.
public String asString()
public void accept(YamlVisitor visitor)

Methods inherited from YamlNode

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

Method Details

getAnchorName

public String getAnchorName()


getInnerNode

public YamlNode getInnerNode()


getChildren

public List<YamlNode> getChildren()

Implementation-specific nodes must return their constituent children. For example, a Map node returns its entries.

Overrides:

YamlNode


asString

public String asString()


accept

public void accept(YamlVisitor visitor)

Overrides:

YamlNode