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
-
-
Field Summary
Fields Modifier and Type Field Description private CommentType
type
private java.lang.String
value
-
Constructor Summary
Constructors Constructor Description CommentToken(CommentType type, java.lang.String value, Mark startMark, Mark endMark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentType
getCommentType()
Token.ID
getTokenId()
For error reporting.java.lang.String
getValue()
-
Methods inherited from class org.yaml.snakeyaml.tokens.Token
getEndMark, getStartMark
-
-
-
-
Field Detail
-
type
private final CommentType type
-
value
private final java.lang.String value
-
-
Constructor Detail
-
CommentToken
public CommentToken(CommentType type, java.lang.String value, Mark startMark, Mark endMark)
-
-
Method Detail
-
getCommentType
public CommentType getCommentType()
-
getValue
public java.lang.String getValue()
-
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"
-
-