Package org.snakeyaml.engine.v2.comments
Class CommentLine
- java.lang.Object
-
- org.snakeyaml.engine.v2.comments.CommentLine
-
public class CommentLine extends Object
A comment line. May be a block comment, blank line, or inline comment.
-
-
Constructor Summary
Constructors Constructor Description CommentLine(Optional<Mark> startMark, Optional<Mark> endMark, String value, CommentType commentType)CommentLine(CommentEvent event)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentTypegetCommentType()Optional<Mark>getEndMark()Optional<Mark>getStartMark()StringgetValue()Value of this comment.StringtoString()
-
-
-
Constructor Detail
-
CommentLine
public CommentLine(CommentEvent event)
-
-
Method Detail
-
getCommentType
public CommentType getCommentType()
-
getValue
public String getValue()
Value of this comment.- Returns:
- comment's value.
-
-