Package org.yaml.snakeyaml.tokens
Class CommentToken
- java.lang.Object
-
- org.yaml.snakeyaml.tokens.Token
-
- org.yaml.snakeyaml.tokens.CommentToken
-
public final class CommentToken extends Token
Comment for humans
-
-
Constructor Summary
Constructors Constructor Description CommentToken(CommentType type, String value, Mark startMark, Mark endMark)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentTypegetCommentType()getterToken.IDgetTokenId()For error reporting.StringgetValue()getter-
Methods inherited from class org.yaml.snakeyaml.tokens.Token
getEndMark, getStartMark
-
-
-
-
Constructor Detail
-
CommentToken
public CommentToken(CommentType type, String value, Mark startMark, Mark endMark)
Create- Parameters:
type- - kindvalue- - textstartMark- - startendMark- - 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:TokenFor error reporting.- Specified by:
getTokenIdin classToken- Returns:
- ID of this token
- See Also:
- "class variable 'id' in PyYAML"
-
-