Class SnakeYamlCommentMapper
java.lang.Object
org.simpleyaml.configuration.comments.YamlCommentMapper
org.simpleyaml.configuration.implementation.snakeyaml.SnakeYamlCommentMapper
- All Implemented Interfaces:
Commentable
-
Field Summary
FieldsFields 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 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(KeyTree.Node node, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) protected voidsetFooter(org.yaml.snakeyaml.nodes.MappingNode node) protected KeyTree.Nodetrack(KeyTree.Node parent, int indent, String key) protected KeyTree.Nodetrack(KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) protected voidtrackBlockComment(KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments) protected KeyTree.NodetrackElement(KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, int elementIndex) protected voidtrackFooter(org.yaml.snakeyaml.nodes.MappingNode node) protected voidtrackSideComment(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
-
sideCommentPrefix
-
headerParsed
protected boolean headerParsed
-
-
Constructor Details
-
SnakeYamlCommentMapper
-
-
Method Details
-
setCommentPrefix
-
track
protected KeyTree.Node track(KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value) -
trackElement
protected KeyTree.Node trackElement(KeyTree.Node parent, String name, org.yaml.snakeyaml.nodes.Node key, int elementIndex) -
track
-
trackBlockComment
protected void trackBlockComment(KeyTree.Node node, List<org.yaml.snakeyaml.comments.CommentLine> comments) -
trackSideComment
protected void trackSideComment(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(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
-