public class SnakeYamlCommentMapper extends YamlCommentMapper
Modifier and Type | Field and Description |
---|---|
protected 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 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(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 KeyTree.Node |
track(KeyTree.Node parent,
int indent,
String key) |
protected KeyTree.Node |
track(KeyTree.Node parent,
String name,
org.yaml.snakeyaml.nodes.Node key,
org.yaml.snakeyaml.nodes.Node value) |
protected void |
trackBlockComment(KeyTree.Node node,
List<org.yaml.snakeyaml.comments.CommentLine> comments) |
protected KeyTree.Node |
trackElement(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(KeyTree.Node node,
List<org.yaml.snakeyaml.comments.CommentLine> comments) |
clearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getNode, getOrAddNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawComment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComment, setComment
protected KeyTree.Node currentNode
protected String sideCommentPrefix
protected boolean headerParsed
protected SnakeYamlCommentMapper(YamlConfigurationOptions options)
protected void setCommentPrefix(YamlConfigurationOptions options)
protected KeyTree.Node track(KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value)
protected KeyTree.Node trackElement(KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, int elementIndex)
protected KeyTree.Node track(KeyTree.Node parent, int indent, String key)
protected void trackBlockComment(KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments)
protected void trackSideComment(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(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 KeyTree.Node getPriorityNode(String path)
getPriorityNode
in class YamlCommentMapper
Copyright © 2023. All rights reserved.