public class YamlCommentMapper extends Object implements org.simpleyaml.configuration.comments.Commentable
Modifier and Type | Field and Description |
---|---|
protected org.simpleyaml.configuration.comments.KeyTree |
keyTree |
protected static Predicate<org.simpleyaml.configuration.comments.KeyTree.Node> |
NO_COMMENTS |
Modifier | Constructor and Description |
---|---|
|
YamlCommentMapper(YamlConfigurationOptions options) |
protected |
YamlCommentMapper(YamlKeyTree keyTree) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearNode(org.simpleyaml.configuration.comments.KeyTree.Node node) |
protected void |
clearNodeIfNoComments(org.simpleyaml.configuration.comments.KeyTree.Node node) |
protected String |
getComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
org.simpleyaml.configuration.comments.CommentType type) |
String |
getComment(String path,
org.simpleyaml.configuration.comments.CommentType type) |
org.simpleyaml.configuration.comments.KeyTree |
getKeyTree() |
org.simpleyaml.configuration.comments.KeyTree.Node |
getNode(String path) |
protected org.simpleyaml.configuration.comments.KeyTree.Node |
getOrAddNode(String path) |
protected org.simpleyaml.configuration.comments.KeyTree.Node |
getPriorityNode(String path) |
protected String |
getRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
org.simpleyaml.configuration.comments.CommentType type) |
String |
getRawComment(String path,
org.simpleyaml.configuration.comments.CommentType type) |
protected YamlConfigurationOptions |
options() |
protected void |
removeComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
org.simpleyaml.configuration.comments.CommentType type) |
void |
removeComment(String path,
org.simpleyaml.configuration.comments.CommentType type) |
void |
setComment(String path,
String comment,
org.simpleyaml.configuration.comments.CommentType type) |
protected void |
setFormattedComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
String comment,
org.simpleyaml.configuration.comments.CommentType type) |
protected void |
setRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node,
String comment,
org.simpleyaml.configuration.comments.CommentType type) |
protected final org.simpleyaml.configuration.comments.KeyTree keyTree
protected static final Predicate<org.simpleyaml.configuration.comments.KeyTree.Node> NO_COMMENTS
public YamlCommentMapper(YamlConfigurationOptions options)
protected YamlCommentMapper(YamlKeyTree keyTree)
public void setComment(String path, String comment, org.simpleyaml.configuration.comments.CommentType type)
setComment
in interface org.simpleyaml.configuration.comments.Commentable
protected final void setFormattedComment(org.simpleyaml.configuration.comments.KeyTree.Node node, String comment, org.simpleyaml.configuration.comments.CommentType type)
protected final void setRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node, String comment, org.simpleyaml.configuration.comments.CommentType type)
public String getComment(String path, org.simpleyaml.configuration.comments.CommentType type)
getComment
in interface org.simpleyaml.configuration.comments.Commentable
protected final String getComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type)
protected final String getRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type)
public String getRawComment(String path, org.simpleyaml.configuration.comments.CommentType type)
public void removeComment(String path, org.simpleyaml.configuration.comments.CommentType type)
protected final void removeComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type)
public org.simpleyaml.configuration.comments.KeyTree getKeyTree()
protected YamlConfigurationOptions options()
public org.simpleyaml.configuration.comments.KeyTree.Node getNode(String path)
protected org.simpleyaml.configuration.comments.KeyTree.Node getPriorityNode(String path)
protected org.simpleyaml.configuration.comments.KeyTree.Node getOrAddNode(String path)
protected void clearNodeIfNoComments(org.simpleyaml.configuration.comments.KeyTree.Node node)
protected void clearNode(org.simpleyaml.configuration.comments.KeyTree.Node node)
Copyright © 2023. All rights reserved.