Interface Comment

  • All Known Subinterfaces:
    ScalarComment

    public interface Comment
    A YAML comment.
    Since:
    4.2.0
    Version:
    $Id: aff7134e2607b5f6db740ef27a5aed734008e092 $
    Author:
    Mihai Andronache (amihaiemil@gmail.com)
    • Method Detail

      • yamlNode

        YamlNode yamlNode()
        Yaml node to which this comment refers.
        Returns:
        YamlNode.
      • value

        String value()
        The actual comment.
        Returns:
        String value or empty String if there is no comment. This method should always return the comment without the "#" at the beginning. The hash symbol will be added when printing.