Package org.yaml.snakeyaml.comments
Class CommentLine
- java.lang.Object
-
- org.yaml.snakeyaml.comments.CommentLine
-
public class CommentLine extends Object
A comment line. It may be a block comment, blank line, or inline comment.
-
-
Constructor Summary
Constructors Constructor Description CommentLine(Mark startMark, Mark endMark, String value, CommentType commentType)CreateCommentLine(CommentEvent event)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentTypegetCommentType()GetterMarkgetEndMark()getterMarkgetStartMark()getterStringgetValue()Value of this comment.StringtoString()
-
-
-
Constructor Detail
-
CommentLine
public CommentLine(CommentEvent event)
Create- Parameters:
event- - the source
-
CommentLine
public CommentLine(Mark startMark, Mark endMark, String value, CommentType commentType)
Create- Parameters:
startMark- - startendMark- - endvalue- - textcommentType- - kind
-
-
Method Detail
-
getEndMark
public Mark getEndMark()
getter- Returns:
- end
-
getStartMark
public Mark getStartMark()
getter- Returns:
- start
-
getCommentType
public CommentType getCommentType()
Getter- Returns:
- kind
-
getValue
public String getValue()
Value of this comment.- Returns:
- comment's value.
-
-