Class SnakeYamlCommentMapper

java.lang.Object
org.simpleyaml.configuration.comments.YamlCommentMapper
org.simpleyaml.configuration.implementation.snakeyaml.SnakeYamlCommentMapper
All Implemented Interfaces:
Commentable

public class SnakeYamlCommentMapper extends YamlCommentMapper
  • Field Details

    • currentNode

      protected KeyTree.Node currentNode
    • sideCommentPrefix

      protected String sideCommentPrefix
    • headerParsed

      protected boolean headerParsed
  • Constructor Details

  • Method Details

    • setCommentPrefix

      protected void setCommentPrefix(YamlConfigurationOptions options)
    • 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

      protected KeyTree.Node track(KeyTree.Node parent, int indent, String key)
    • 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)
    • trackFooter

      protected void trackFooter(org.yaml.snakeyaml.nodes.MappingNode node)
    • getComment

      protected String getComment(List<org.yaml.snakeyaml.comments.CommentLine> commentLines, String firstCommentPrefix, String multilineCommentPrefix)
    • appendLine

      protected void appendLine(StringBuilder commentBuilder, String commentPrefix, org.yaml.snakeyaml.comments.CommentLine commentLine, boolean last)
    • getCommentLines

      protected List<org.yaml.snakeyaml.comments.CommentLine> getCommentLines(String comment, org.yaml.snakeyaml.comments.CommentType commentType)
    • setComments

      protected void setComments(KeyTree.Node node, org.yaml.snakeyaml.nodes.Node key, org.yaml.snakeyaml.nodes.Node value)
    • setFooter

      protected void setFooter(org.yaml.snakeyaml.nodes.MappingNode node)
    • 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

      protected KeyTree.Node getPriorityNode(String path)
      Overrides:
      getPriorityNode in class YamlCommentMapper