Class YamlCommentMapper
java.lang.Object
org.simpleyaml.configuration.comments.YamlCommentMapper
- All Implemented Interfaces:
org.simpleyaml.configuration.comments.Commentable
- Direct Known Subclasses:
SnakeYamlCommentMapper,YamlCommentReader
public class YamlCommentMapper
extends Object
implements org.simpleyaml.configuration.comments.Commentable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.simpleyaml.configuration.comments.KeyTreeprotected static final Predicate<org.simpleyaml.configuration.comments.KeyTree.Node> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearNode(org.simpleyaml.configuration.comments.KeyTree.Node node) protected voidclearNodeIfNoComments(org.simpleyaml.configuration.comments.KeyTree.Node node) getComment(String path, org.simpleyaml.configuration.comments.CommentType type) protected final StringgetComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type) org.simpleyaml.configuration.comments.KeyTreeorg.simpleyaml.configuration.comments.KeyTree.Nodeprotected org.simpleyaml.configuration.comments.KeyTree.NodegetOrAddNode(String path) protected org.simpleyaml.configuration.comments.KeyTree.NodegetPriorityNode(String path) getRawComment(String path, org.simpleyaml.configuration.comments.CommentType type) protected final StringgetRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type) protected YamlConfigurationOptionsoptions()voidremoveComment(String path, org.simpleyaml.configuration.comments.CommentType type) protected final voidremoveComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type) voidsetComment(String path, String comment, org.simpleyaml.configuration.comments.CommentType type) protected final voidsetFormattedComment(org.simpleyaml.configuration.comments.KeyTree.Node node, String comment, org.simpleyaml.configuration.comments.CommentType type) protected final voidsetRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node, String comment, org.simpleyaml.configuration.comments.CommentType type) Methods 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
-
keyTree
protected final org.simpleyaml.configuration.comments.KeyTree keyTree -
NO_COMMENTS
-
-
Constructor Details
-
YamlCommentMapper
-
YamlCommentMapper
-
-
Method Details
-
setComment
public void setComment(String path, String comment, org.simpleyaml.configuration.comments.CommentType type) - Specified by:
setCommentin interfaceorg.simpleyaml.configuration.comments.Commentable
-
setFormattedComment
protected final void setFormattedComment(org.simpleyaml.configuration.comments.KeyTree.Node node, String comment, org.simpleyaml.configuration.comments.CommentType type) -
setRawComment
protected final void setRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node, String comment, org.simpleyaml.configuration.comments.CommentType type) -
getComment
- Specified by:
getCommentin interfaceorg.simpleyaml.configuration.comments.Commentable
-
getComment
protected final String getComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type) -
getRawComment
protected final String getRawComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type) -
getRawComment
-
removeComment
-
removeComment
protected final void removeComment(org.simpleyaml.configuration.comments.KeyTree.Node node, org.simpleyaml.configuration.comments.CommentType type) -
getKeyTree
public org.simpleyaml.configuration.comments.KeyTree getKeyTree() -
options
-
getNode
-
getPriorityNode
-
getOrAddNode
-
clearNodeIfNoComments
protected void clearNodeIfNoComments(org.simpleyaml.configuration.comments.KeyTree.Node node) -
clearNode
protected void clearNode(org.simpleyaml.configuration.comments.KeyTree.Node node)
-