Interface SimpleComment
- All Superinterfaces:
Comment
- All Known Implementing Classes:
YamlBlockComment,YamlInlineComment
An interface that has the comment as a
String.-
Method Summary
Modifier and TypeMethodDescriptioncontent()Gets the content.static SimpleCommentCreates a newSimpleComment.static SimpleCommentCreates a newSimpleComment.type()Returns the type of this comment.
-
Method Details
-
create
Creates a newSimpleComment.- Parameters:
content- the content- Returns:
- a new
SimpleComment
-
create
Creates a newSimpleComment.- Parameters:
content- the contenttype- the type of the comment- Returns:
- a new
SimpleComment
-
content
String content()Gets the content.- Returns:
- the content
-
type
String type()Returns the type of this comment.- Returns:
- the type of this comment
-