Modifier and Type | Class and Description |
---|---|
class |
YamlKeyTree.YamlCommentNode |
Modifier and Type | Field and Description |
---|---|
protected KeyTree.Node |
YamlCommentDumper.commentNode |
protected KeyTree.Node |
YamlCommentDumper.commentNodeFallback |
protected KeyTree.Node |
YamlCommentReader.currentList |
protected KeyTree.Node |
YamlCommentReader.currentNode |
protected KeyTree.Node |
YamlCommentDumper.firstListMapElement |
protected KeyTree.Node |
KeyTree.Node.parent |
protected KeyTree.Node |
KeyTree.root |
Modifier and Type | Field and Description |
---|---|
protected List<KeyTree.Node> |
KeyTree.Node.children |
protected Map<Integer,KeyTree.Node> |
KeyTree.Node.indexByElementIndex |
protected Map<String,KeyTree.Node> |
KeyTree.Node.indexByName |
protected static Predicate<KeyTree.Node> |
YamlCommentMapper.NO_COMMENTS |
protected Map<String,KeyTree.Node> |
KeyTree.Node.priorityIndex |
Modifier and Type | Method and Description |
---|---|
KeyTree.Node |
KeyTree.Node.add(int indent,
String key) |
protected KeyTree.Node |
KeyTree.Node.add(int indent,
String key,
boolean priority) |
KeyTree.Node |
KeyTree.add(String path)
Get a child from its path.
|
KeyTree.Node |
KeyTree.Node.add(String key) |
protected KeyTree.Node |
YamlKeyTree.YamlCommentNode.add(String key,
boolean priority) |
protected KeyTree.Node |
KeyTree.Node.add(String key,
boolean priority) |
protected KeyTree.Node |
YamlKeyTree.createNode(KeyTree.Node parent,
int indent,
String key) |
protected KeyTree.Node |
KeyTree.createNode(KeyTree.Node parent,
int indent,
String key) |
KeyTree.Node |
KeyTree.findParent(int indent)
Get the last node that can be a parent of a child with the indent provided.
|
protected KeyTree.Node |
KeyTree.findParent(KeyTree.Node parent,
int indent) |
KeyTree.Node |
KeyTree.Node.get(int i)
Get a child from its index.
|
KeyTree.Node |
KeyTree.get(String path)
Get a child from its path.
|
KeyTree.Node |
KeyTree.Node.get(String path)
Get a child from its path.
|
protected KeyTree.Node |
KeyTree.Node.get(String path,
boolean add,
boolean priority)
Get a child from its path, or optionally add a new one if it is not created.
|
KeyTree.Node |
KeyTree.Node.getElement(int i)
Get a child list element from its index.
|
protected KeyTree.Node |
KeyTree.Node.getElement(int i,
boolean add)
Get a child list element from its index, or optionally add a new one if it is not created.
|
KeyTree.Node |
KeyTree.Node.getFirst() |
KeyTree.Node |
KeyTree.Node.getLast() |
KeyTree.Node |
YamlCommentReader.ReadingExplicitStyle.getNode() |
KeyTree.Node |
YamlCommentDumper.getNode(String path) |
KeyTree.Node |
YamlCommentMapper.getNode(String path) |
KeyTree.Node |
KeyTree.getOrAdd(String path)
Get a child from its path.
|
protected KeyTree.Node |
YamlCommentMapper.getOrAddNode(String path) |
KeyTree.Node |
KeyTree.Node.getParent() |
KeyTree.Node |
KeyTree.getPriority(String path)
Get a child from its path.
|
KeyTree.Node |
KeyTree.Node.getPriority(String path)
Get a child from its path.
|
protected KeyTree.Node |
YamlCommentMapper.getPriorityNode(String path) |
KeyTree.Node |
KeyTree.getRoot()
Get the root node.
|
protected KeyTree.Node |
YamlCommentParser.track() |
protected KeyTree.Node |
YamlCommentReader.track() |
KeyTree.Node |
YamlCommentReader.ReadingExplicitStyle.track() |
protected KeyTree.Node |
YamlCommentReader.track(int indent,
String key) |
protected KeyTree.Node |
YamlCommentReader.trackExplicit() |
Modifier and Type | Method and Description |
---|---|
List<KeyTree.Node> |
KeyTree.children() |
List<KeyTree.Node> |
KeyTree.Node.children() |
Set<Map.Entry<String,KeyTree.Node>> |
KeyTree.entries() |
Set<Map.Entry<String,KeyTree.Node>> |
KeyTree.Node.entries() |
Iterator<KeyTree.Node> |
KeyTree.iterator() |
Iterator<KeyTree.Node> |
KeyTree.Node.iterator() |
Modifier and Type | Method and Description |
---|---|
protected void |
YamlCommentDumper.checkFirstListMapElement(KeyTree.Node commentNode,
KeyTree.Node readerNode) |
protected void |
YamlCommentMapper.clearNode(KeyTree.Node node) |
protected void |
YamlCommentMapper.clearNodeIfNoComments(KeyTree.Node node) |
protected KeyTree.Node |
YamlKeyTree.createNode(KeyTree.Node parent,
int indent,
String key) |
protected KeyTree.Node |
KeyTree.createNode(KeyTree.Node parent,
int indent,
String key) |
protected KeyTree.Node |
KeyTree.findParent(KeyTree.Node parent,
int indent) |
protected String |
YamlCommentMapper.getComment(KeyTree.Node node,
CommentType type) |
void |
YamlCommentDumper.getCommentNode(KeyTree.Node readerNode) |
protected String |
YamlCommentMapper.getRawComment(KeyTree.Node node,
CommentType type) |
protected void |
YamlCommentMapper.removeComment(KeyTree.Node node,
CommentType type) |
protected void |
YamlCommentMapper.setFormattedComment(KeyTree.Node node,
String comment,
CommentType type) |
protected void |
KeyTree.Node.setPriority(String key,
KeyTree.Node child) |
protected void |
YamlCommentMapper.setRawComment(KeyTree.Node node,
String comment,
CommentType type) |
protected void |
YamlCommentParser.setSideComment(KeyTree.Node node,
String sideComment) |
protected String |
YamlCommentParser.trackBlockComment(KeyTree.Node node) |
protected void |
YamlCommentParser.trackBlockCommentExplicit(KeyTree.Node node) |
protected void |
YamlCommentParser.trackSideComment(KeyTree.Node node) |
Modifier and Type | Method and Description |
---|---|
boolean |
KeyTree.Node.clearIf(Predicate<KeyTree.Node> condition) |
protected boolean |
KeyTree.Node.clearIf(Predicate<KeyTree.Node> condition,
boolean removeFromParent) |
Modifier and Type | Method and Description |
---|---|
String |
BlankLineYamlCommentFormatter.dump(String comment,
CommentType type,
KeyTree.Node node) |
String |
YamlHeaderFormatter.dump(String header,
CommentType type,
KeyTree.Node node)
Given the header (for instance the one returned by
YamlHeaderFormatter.parse(java.lang.String, org.simpleyaml.configuration.comments.CommentType, org.simpleyaml.configuration.comments.KeyTree.Node) ),
returns the final string formatted to be dumped somewhere like a file. |
String |
YamlCommentFormatter.dump(String comment,
CommentType type,
KeyTree.Node node) |
String |
PrettyYamlCommentFormatter.dump(String comment,
CommentType type,
KeyTree.Node node) |
String |
CommentFormatter.dump(String comment,
CommentType type,
KeyTree.Node node)
Given a comment returns the raw-formatted string to be dumped somewhere like a file.
|
String |
YamlHeaderFormatter.parse(Reader raw,
CommentType type,
KeyTree.Node node) |
String |
YamlCommentFormatter.parse(Reader raw,
CommentType type,
KeyTree.Node node) |
String |
CommentFormatter.parse(Reader raw,
CommentType type,
KeyTree.Node node)
Parse the comment from a reader that may contain a raw-formatted comment (for instance from a configuration file)
to a human-friendly contentful representation of that comment.
|
String |
YamlHeaderFormatter.parse(String raw,
CommentType type,
KeyTree.Node node)
Parse the header of a contents string, like a file contents.
|
default String |
CommentFormatter.parse(String raw,
CommentType type,
KeyTree.Node node)
Parse the comment from a string that may contain a raw-formatted comment (for instance from a configuration file)
to a human-friendly contentful representation of that comment.
|
Modifier and Type | Method and Description |
---|---|
protected void |
YamlFile.setListNode(Collection<?> value,
KeyTree.Node node) |
Modifier and Type | Field and Description |
---|---|
protected KeyTree.Node |
SnakeYamlCommentMapper.currentNode |
Modifier and Type | Method and Description |
---|---|
protected KeyTree.Node |
SnakeYamlCommentMapper.getPriorityNode(String path) |
protected KeyTree.Node |
SnakeYamlCommentMapper.track(KeyTree.Node parent,
int indent,
String key) |
protected KeyTree.Node |
SnakeYamlCommentMapper.track(KeyTree.Node parent,
String name,
org.yaml.snakeyaml.nodes.Node key,
org.yaml.snakeyaml.nodes.Node value) |
protected KeyTree.Node |
SnakeYamlCommentMapper.trackElement(KeyTree.Node parent,
String name,
org.yaml.snakeyaml.nodes.Node key,
int elementIndex) |
Modifier and Type | Method and Description |
---|---|
protected org.yaml.snakeyaml.nodes.MappingNode |
SnakeYamlImplementation.sectionToMapping(ConfigurationSection section,
KeyTree.Node node,
SnakeYamlCommentMapper yamlCommentMapper) |
protected void |
SnakeYamlCommentMapper.setComments(KeyTree.Node node,
org.yaml.snakeyaml.nodes.Node key,
org.yaml.snakeyaml.nodes.Node value) |
protected void |
SnakeYamlImplementation.setCommentsMapping(org.yaml.snakeyaml.nodes.MappingNode mapping,
KeyTree.Node node,
SnakeYamlCommentMapper yamlCommentMapper) |
protected void |
SnakeYamlImplementation.setCommentsSequence(org.yaml.snakeyaml.nodes.SequenceNode sequence,
KeyTree.Node node,
SnakeYamlCommentMapper yamlCommentMapper) |
protected KeyTree.Node |
SnakeYamlCommentMapper.track(KeyTree.Node parent,
int indent,
String key) |
protected KeyTree.Node |
SnakeYamlCommentMapper.track(KeyTree.Node parent,
String name,
org.yaml.snakeyaml.nodes.Node key,
org.yaml.snakeyaml.nodes.Node value) |
protected void |
SnakeYamlCommentMapper.trackBlockComment(KeyTree.Node node,
List<org.yaml.snakeyaml.comments.CommentLine> comments) |
protected KeyTree.Node |
SnakeYamlCommentMapper.trackElement(KeyTree.Node parent,
String name,
org.yaml.snakeyaml.nodes.Node key,
int elementIndex) |
protected void |
SnakeYamlImplementation.trackMapping(org.yaml.snakeyaml.nodes.MappingNode node,
ConfigurationSection section,
KeyTree.Node parent,
SnakeYamlCommentMapper yamlCommentMapper) |
protected void |
SnakeYamlImplementation.trackSequence(org.yaml.snakeyaml.nodes.SequenceNode node,
KeyTree.Node parent,
SnakeYamlCommentMapper yamlCommentMapper) |
protected void |
SnakeYamlCommentMapper.trackSideComment(KeyTree.Node node,
List<org.yaml.snakeyaml.comments.CommentLine> comments) |
Copyright © 2023. All rights reserved.