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. Maybe a block comment, blank line, or inline comment.
-
-
Constructor Summary
Constructors Constructor Description CommentLine(Optional<Mark> startMark, Optional<Mark> endMark, String value, CommentType commentType)CreateCommentLine(org.snakeyaml.engine.v2.events.CommentEvent event)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentTypegetCommentType()getterOptional<Mark>getEndMark()getterOptional<Mark>getStartMark()getterStringgetValue()Value of this comment.StringtoString()
-
-
-
Method Detail
-
getCommentType
public CommentType getCommentType()
getter- Returns:
- type of it
-
getValue
public String getValue()
Value of this comment.- Returns:
- comment's value.
-
-