Class CommentToken


  • public final class CommentToken
    extends Token
    Comment for humans
    • Constructor Detail

      • CommentToken

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

      • 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"