Class AnchorNode

java.lang.Object
org.yaml.snakeyaml.nodes.Node
org.yaml.snakeyaml.nodes.AnchorNode

public class AnchorNode extends Node
This class is only used during representation (dumping)
  • Field Details

    • realNode

      private final Node realNode
  • Constructor Details

    • AnchorNode

      public AnchorNode(Node realNode)
      Anchor
      Parameters:
      realNode - - the node which contains the referenced data
  • Method Details

    • getNodeId

      public NodeId getNodeId()
      Description copied from class: Node
      For error reporting.
      Specified by:
      getNodeId in class Node
      Returns:
      scalar, sequence, mapping
      See Also:
      • "class variable 'id' in PyYAML"
    • getRealNode

      public Node getRealNode()
      Getter
      Returns:
      node with data