Package org.yaml.snakeyaml.comments
Class CommentLine
- java.lang.Object
-
- org.yaml.snakeyaml.comments.CommentLine
-
public class CommentLine extends java.lang.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, java.lang.String value, CommentType commentType)
CreateCommentLine(CommentEvent event)
Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentType
getCommentType()
GetterMark
getEndMark()
getterMark
getStartMark()
getterjava.lang.String
getValue()
Value of this comment.java.lang.String
toString()
-
-
-
Constructor Detail
-
CommentLine
public CommentLine(CommentEvent event)
Create- Parameters:
event
- - the source
-
CommentLine
public CommentLine(Mark startMark, Mark endMark, java.lang.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 java.lang.String getValue()
Value of this comment.- Returns:
- comment's value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-