public class PrettyYamlCommentFormatter extends YamlCommentFormatter
YamlCommentFormat.PRETTY
formatterblockFormatter, sideFormatter
Constructor and Description |
---|
PrettyYamlCommentFormatter() |
PrettyYamlCommentFormatter(YamlCommentFormatterConfiguration blockFormatter) |
PrettyYamlCommentFormatter(YamlCommentFormatterConfiguration blockFormatter,
YamlSideCommentFormatterConfiguration sideFormatter) |
Modifier and Type | Method and Description |
---|---|
String |
dump(String comment,
CommentType type,
KeyTree.Node node)
Given a comment returns the raw-formatted string to be dumped somewhere like a file.
|
blockFormatter, equals, formatterConfiguration, hashCode, parse, parseCommentLine, sideFormatter, stripPrefix, toString, trim
public PrettyYamlCommentFormatter()
public PrettyYamlCommentFormatter(YamlCommentFormatterConfiguration blockFormatter)
public PrettyYamlCommentFormatter(YamlCommentFormatterConfiguration blockFormatter, YamlSideCommentFormatterConfiguration sideFormatter)
public String dump(String comment, CommentType type, KeyTree.Node node)
CommentFormatter
dump
in interface CommentFormatter
dump
in class YamlCommentFormatter
comment
- the comment to be dumpedtype
- the comment typenode
- the comment nodeCopyright © 2023. All rights reserved.