Package org.snakeyaml.engine.v2.tokens
Class CommentToken
- java.lang.Object
-
- org.snakeyaml.engine.v2.tokens.Token
-
- org.snakeyaml.engine.v2.tokens.CommentToken
-
public final class CommentToken extends Token
-
-
Constructor Summary
Constructors Constructor Description CommentToken(CommentType type, String value, Optional<Mark> startMark, Optional<Mark> endMark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentTypegetCommentType()Token.IDgetTokenId()For error reporting.StringgetValue()-
Methods inherited from class org.snakeyaml.engine.v2.tokens.Token
getEndMark, getStartMark, toString
-
-
-
-
Method Detail
-
getCommentType
public CommentType getCommentType()
-
getValue
public String getValue()
-
getTokenId
public Token.ID getTokenId()
Description copied from class:TokenFor error reporting.- Specified by:
getTokenIdin classToken- Returns:
- ID of this token
-
-