Skip to content

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

Class YamlAlias

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


public class YamlAlias
extends YamlNode

Constructor Summary

Constructor Description
YamlAlias(YamlToken token, String alias)

Method Summary

Modifier and Type Method Description
public String getAlias()
public void setResolvedNode(YamlNode node) Put this back to fix the Parser
public YamlNode getResolvedNode()
public List<YamlNode> getChildren() Implementation-specific nodes must return their constituent children. For example, a Map node returns its entries.
public String getAnchor() Gets the YAML anchor associated with this node (e.g., &anchorName).
public void accept(YamlVisitor visitor)

Methods inherited from YamlNode

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

Method Details

getAlias

public String getAlias()


setResolvedNode

public void setResolvedNode(YamlNode node)

Put this back to fix the Parser


getResolvedNode

public YamlNode getResolvedNode()


getChildren

public List<YamlNode> getChildren()

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

Overrides:

YamlNode


getAnchor

public String getAnchor()

Gets the YAML anchor associated with this node (e.g., &anchorName).

Overrides:

YamlNode


accept

public void accept(YamlVisitor visitor)

Overrides:

YamlNode