public class SnakeYamlCommentMapper extends YamlCommentMapper
| Modifier and Type | Field and Description | 
|---|---|
| protected org.simpleyaml.configuration.comments.KeyTree.Node | currentNode | 
| protected boolean | headerParsed | 
| protected String | sideCommentPrefix | 
keyTree, NO_COMMENTS| Modifier | Constructor and Description | 
|---|---|
| protected  | SnakeYamlCommentMapper(YamlConfigurationOptions options) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | appendLine(StringBuilder commentBuilder,
          String commentPrefix,
          org.yaml.snakeyaml.comments.CommentLine commentLine,
          boolean last) | 
| protected void | clearCurrentNodeIfNoComments() | 
| protected String | getComment(List<org.yaml.snakeyaml.comments.CommentLine> commentLines,
          String firstCommentPrefix,
          String multilineCommentPrefix) | 
| protected List<org.yaml.snakeyaml.comments.CommentLine> | getCommentLines(String comment,
               org.yaml.snakeyaml.comments.CommentType commentType) | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | getPriorityNode(String path) | 
| protected org.yaml.snakeyaml.nodes.Node | getSideCommentNode(org.yaml.snakeyaml.nodes.Node key,
                  org.yaml.snakeyaml.nodes.Node value) | 
| protected void | setCommentPrefix(YamlConfigurationOptions options) | 
| protected void | setComments(org.simpleyaml.configuration.comments.KeyTree.Node node,
           org.yaml.snakeyaml.nodes.Node key,
           org.yaml.snakeyaml.nodes.Node value) | 
| protected void | setFooter(org.yaml.snakeyaml.nodes.MappingNode node) | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | track(org.simpleyaml.configuration.comments.KeyTree.Node parent,
     int indent,
     String key) | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | track(org.simpleyaml.configuration.comments.KeyTree.Node parent,
     String name,
     org.yaml.snakeyaml.nodes.Node key,
     org.yaml.snakeyaml.nodes.Node value) | 
| protected void | trackBlockComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
                 List<org.yaml.snakeyaml.comments.CommentLine> comments) | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | trackElement(org.simpleyaml.configuration.comments.KeyTree.Node parent,
            String name,
            org.yaml.snakeyaml.nodes.Node key,
            int elementIndex) | 
| protected void | trackFooter(org.yaml.snakeyaml.nodes.MappingNode node) | 
| protected void | trackSideComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
                List<org.yaml.snakeyaml.comments.CommentLine> comments) | 
clearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getNode, getOrAddNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawCommentprotected org.simpleyaml.configuration.comments.KeyTree.Node currentNode
protected String sideCommentPrefix
protected boolean headerParsed
protected SnakeYamlCommentMapper(YamlConfigurationOptions options)
protected void setCommentPrefix(YamlConfigurationOptions options)
protected org.simpleyaml.configuration.comments.KeyTree.Node track(org.simpleyaml.configuration.comments.KeyTree.Node parent,
                                                                   String name,
                                                                   org.yaml.snakeyaml.nodes.Node key,
                                                                   org.yaml.snakeyaml.nodes.Node value)
protected org.simpleyaml.configuration.comments.KeyTree.Node trackElement(org.simpleyaml.configuration.comments.KeyTree.Node parent,
                                                                          String name,
                                                                          org.yaml.snakeyaml.nodes.Node key,
                                                                          int elementIndex)
protected org.simpleyaml.configuration.comments.KeyTree.Node track(org.simpleyaml.configuration.comments.KeyTree.Node parent,
                                                                   int indent,
                                                                   String key)
protected void trackBlockComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
                                 List<org.yaml.snakeyaml.comments.CommentLine> comments)
protected void trackSideComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
                                List<org.yaml.snakeyaml.comments.CommentLine> comments)
protected void trackFooter(org.yaml.snakeyaml.nodes.MappingNode node)
protected String getComment(List<org.yaml.snakeyaml.comments.CommentLine> commentLines, String firstCommentPrefix, String multilineCommentPrefix)
protected void appendLine(StringBuilder commentBuilder, String commentPrefix, org.yaml.snakeyaml.comments.CommentLine commentLine, boolean last)
protected List<org.yaml.snakeyaml.comments.CommentLine> getCommentLines(String comment, org.yaml.snakeyaml.comments.CommentType commentType)
protected void setComments(org.simpleyaml.configuration.comments.KeyTree.Node node,
                           org.yaml.snakeyaml.nodes.Node key,
                           org.yaml.snakeyaml.nodes.Node value)
protected void setFooter(org.yaml.snakeyaml.nodes.MappingNode node)
protected org.yaml.snakeyaml.nodes.Node getSideCommentNode(org.yaml.snakeyaml.nodes.Node key,
                                                           org.yaml.snakeyaml.nodes.Node value)
protected void clearCurrentNodeIfNoComments()
protected org.simpleyaml.configuration.comments.KeyTree.Node getPriorityNode(String path)
getPriorityNode in class YamlCommentMapperCopyright © 2023. All rights reserved.