Class CommentLine

java.lang.Object
org.yaml.snakeyaml.comments.CommentLine

public class CommentLine extends Object
A comment line. It may be a block comment, blank line, or inline comment.
  • Constructor Details

    • CommentLine

      public CommentLine(CommentEvent event)
      Create
      Parameters:
      event - - the source
    • CommentLine

      public CommentLine(Mark startMark, Mark endMark, String value, CommentType commentType)
      Create
      Parameters:
      startMark - - start
      endMark - - end
      value - - text
      commentType - - kind
  • Method Details

    • getEndMark

      public Mark getEndMark()
      getter
      Returns:
      end
    • getStartMark

      public Mark getStartMark()
      getter
      Returns:
      start
    • getCommentType

      public CommentType getCommentType()
      Getter
      Returns:
      kind
    • getValue

      public String getValue()
      Value of this comment.
      Returns:
      comment's value.
    • toString

      public String toString()
      Overrides:
      toString in class Object