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 CommentType
getCommentType()
getterToken.ID
getTokenId()
For error reporting.String
getValue()
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:Token
For error reporting.- Specified by:
getTokenId
in classToken
- Returns:
- ID of this token
- See Also:
- "class variable 'id' in PyYAML"
-
-