Class SnakeYamlCommentMapper
java.lang.Object
org.simpleyaml.configuration.comments.YamlCommentMapper
org.simpleyaml.configuration.implementation.snakeyaml.SnakeYamlCommentMapper
- All Implemented Interfaces:
org.simpleyaml.configuration.comments.Commentable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.simpleyaml.configuration.comments.KeyTree.Nodeprotected booleanprotected StringFields inherited from class org.simpleyaml.configuration.comments.YamlCommentMapper
keyTree, NO_COMMENTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendLine(StringBuilder commentBuilder, String commentPrefix, org.yaml.snakeyaml.comments.CommentLine commentLine, boolean last) protected voidprotected StringgetComment(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.NodegetPriorityNode(String path) protected org.yaml.snakeyaml.nodes.NodegetSideCommentNode(org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) protected voidsetCommentPrefix(YamlConfigurationOptions options) protected voidsetComments(org.simpleyaml.configuration.comments.KeyTree.Node node, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) protected voidsetFooter(org.yaml.snakeyaml.nodes.MappingNode node) protected org.simpleyaml.configuration.comments.KeyTree.Nodeprotected org.simpleyaml.configuration.comments.KeyTree.Nodetrack(org.simpleyaml.configuration.comments.KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) protected voidtrackBlockComment(org.simpleyaml.configuration.comments.KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments) protected org.simpleyaml.configuration.comments.KeyTree.NodetrackElement(org.simpleyaml.configuration.comments.KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, int elementIndex) protected voidtrackFooter(org.yaml.snakeyaml.nodes.MappingNode node) protected voidtrackSideComment(org.simpleyaml.configuration.comments.KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments) Methods inherited from class org.simpleyaml.configuration.comments.YamlCommentMapper
clearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getNode, getOrAddNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawCommentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.simpleyaml.configuration.comments.Commentable
getComment, setComment
-
Field Details
-
currentNode
protected org.simpleyaml.configuration.comments.KeyTree.Node currentNode -
sideCommentPrefix
-
headerParsed
protected boolean headerParsed
-
-
Constructor Details
-
SnakeYamlCommentMapper
-
-
Method Details
-
setCommentPrefix
-
track
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) -
trackElement
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) -
track
protected org.simpleyaml.configuration.comments.KeyTree.Node track(org.simpleyaml.configuration.comments.KeyTree.Node parent, int indent, String key) -
trackBlockComment
protected void trackBlockComment(org.simpleyaml.configuration.comments.KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments) -
trackSideComment
protected void trackSideComment(org.simpleyaml.configuration.comments.KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments) -
getComment
-
appendLine
protected void appendLine(StringBuilder commentBuilder, String commentPrefix, org.yaml.snakeyaml.comments.CommentLine commentLine, boolean last) -
getCommentLines
-
setComments
protected void setComments(org.simpleyaml.configuration.comments.KeyTree.Node node, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) -
getSideCommentNode
protected org.yaml.snakeyaml.nodes.Node getSideCommentNode(org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) -
clearCurrentNodeIfNoComments
protected void clearCurrentNodeIfNoComments() -
getPriorityNode
- Overrides:
getPriorityNodein classYamlCommentMapper
-