Class CommentToken

java.lang.Object
org.yaml.snakeyaml.tokens.Token
org.yaml.snakeyaml.tokens.CommentToken

public final class CommentToken extends Token
Comment for humans
  • Field Details

  • Constructor Details

    • CommentToken

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

    • getCommentType

      public CommentType getCommentType()
      getter
      Returns:
      the kind
    • getValue

      public String getValue()
      getter
      Returns:
      text
    • getTokenId

      public Token.ID getTokenId()
      Description copied from class: Token
      For error reporting.
      Specified by:
      getTokenId in class Token
      Returns:
      ID of this token
      See Also:
      • "class variable 'id' in PyYAML"