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 getName()
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 String asString()
public void accept(YamlVisitor visitor)
public boolean equals(Object o)
public int hashCode() Generates a hash code based on the node's logical content.
public String toString()

Methods inherited from YamlNode

isPreceededByNewLine, getNodeStyle, getOptions, setFileEndsWithNewLine, setNodeStyle, getTag, setAnchor, getStartColumn, addComments, getStartLine, fileEndsWithNewLine, getEndColumn, getSemanticColumn, getEndLine, getComments, setTag, addComment, setPreceededByNewLine, getResolvedTag, getToken, getProperties, setResolvedTag, setSemanticColumn

Method Details

getName

public String getName()


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


asString

public String asString()


accept

public void accept(YamlVisitor visitor)

Overrides:

YamlNode


equals

public boolean equals(Object o)

Overrides:

YamlNode


hashCode

public int hashCode()

Generates a hash code based on the node's logical content.

Overrides:

YamlNode


toString

public String toString()

Overrides:

YamlNode