| Package | Description |
|---|---|
| dev.dejvokep.boostedyaml | |
| dev.dejvokep.boostedyaml.block | |
| dev.dejvokep.boostedyaml.block.implementation | |
| dev.dejvokep.boostedyaml.engine |
| Modifier and Type | Class and Description |
|---|---|
class |
YamlDocument
Represents a YAML document.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Comments.add(Block<?> block,
Comments.NodeType node,
Comments.Position position,
org.snakeyaml.engine.v2.comments.CommentLine comment)
Adds the given comment to already existing comments at the given position.
|
static void |
Comments.add(Block<?> block,
Comments.NodeType node,
Comments.Position position,
org.snakeyaml.engine.v2.comments.CommentLine comment)
Adds the given comment to already existing comments at the given position.
|
static void |
Comments.add(Block<?> block,
Comments.NodeType node,
Comments.Position position,
List<org.snakeyaml.engine.v2.comments.CommentLine> comments)
Adds the given comments to already existing comments at the given position.
|
static void |
Comments.add(Block<?> block,
Comments.NodeType node,
Comments.Position position,
List<org.snakeyaml.engine.v2.comments.CommentLine> comments)
Adds the given comments to already existing comments at the given position.
|
static List<org.snakeyaml.engine.v2.comments.CommentLine> |
Comments.get(Block<?> block,
Comments.NodeType node,
Comments.Position position)
Returns comments at the given position.
|
static List<org.snakeyaml.engine.v2.comments.CommentLine> |
Comments.get(Block<?> block,
Comments.NodeType node,
Comments.Position position)
Returns comments at the given position.
|
static void |
Comments.remove(Block<?> block,
Comments.NodeType node,
Comments.Position position)
Removes all comments at the given position.
|
static void |
Comments.remove(Block<?> block,
Comments.NodeType node,
Comments.Position position)
Removes all comments at the given position.
|
static void |
Comments.set(Block<?> block,
Comments.NodeType node,
Comments.Position position,
List<org.snakeyaml.engine.v2.comments.CommentLine> comments)
Sets the given comments at the given position.
|
static void |
Comments.set(Block<?> block,
Comments.NodeType node,
Comments.Position position,
List<org.snakeyaml.engine.v2.comments.CommentLine> comments)
Sets the given comments at the given position.
|
| Constructor and Description |
|---|
Block(Block<?> previous,
T value)
Creates a block with the same comments as the provided previous block, with the given value.
|
Block(Block<?> previous,
T value)
Creates a block with the same comments as the provided previous block, with the given value.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Section
Represents one YAML section (map), while storing its contents and comments.
|
class |
TerminatedBlock
|
| Modifier and Type | Method and Description |
|---|---|
Block<?> |
Section.getBlock(Route route)
Returns the block encapsulated in the result of
Section.getOptionalBlock(Route). |
Block<?> |
Section.getBlock(Route route)
Returns the block encapsulated in the result of
Section.getOptionalBlock(Route). |
Block<?> |
Section.getBlock(String route)
Returns the block encapsulated in the result of
Section.getOptionalBlock(String). |
Block<?> |
Section.getBlock(String route)
Returns the block encapsulated in the result of
Section.getOptionalBlock(String). |
| Modifier and Type | Method and Description |
|---|---|
Optional<Block<?>> |
Section.getOptionalBlock(Route route)
Returns block at the given route encapsulated in an instance of
Optional. |
Optional<Block<?>> |
Section.getOptionalBlock(Route route)
Returns block at the given route encapsulated in an instance of
Optional. |
Optional<Block<?>> |
Section.getOptionalBlock(String route)
Returns block at the given string route encapsulated in an instance of
Optional. |
Optional<Block<?>> |
Section.getOptionalBlock(String route)
Returns block at the given string route encapsulated in an instance of
Optional. |
Map<Route,Block<?>> |
Section.getRouteMappedBlocks(boolean deep)
Returns a complete map of route=block pairs; while not keeping any reference to this (or sub-) sections.
|
Map<Route,Block<?>> |
Section.getRouteMappedBlocks(boolean deep)
Returns a complete map of route=block pairs; while not keeping any reference to this (or sub-) sections.
|
Map<String,Block<?>> |
Section.getStringRouteMappedBlocks(boolean deep)
Returns a complete map of route=block pairs; while not keeping any reference to this (or sub-) sections.
|
Map<String,Block<?>> |
Section.getStringRouteMappedBlocks(boolean deep)
Returns a complete map of route=block pairs; while not keeping any reference to this (or sub-) sections.
|
| Constructor and Description |
|---|
Section(YamlDocument root,
Section parent,
Route route,
Block<?> previous,
Map<?,?> mappings)
Creates a section using the given relatives, previous block and mappings.
|
Section(YamlDocument root,
Section parent,
Route route,
Block<?> previous,
Map<?,?> mappings)
Creates a section using the given relatives, previous block and mappings.
|
TerminatedBlock(Block<?> previous,
Object value)
Creates a mapping with the same comments as the provided previous block, with the given value.
|
TerminatedBlock(Block<?> previous,
Object value)
Creates a mapping with the same comments as the provided previous block, with the given value.
|
| Constructor and Description |
|---|
Section(Map<Object,Block<?>> defaultMap)
Creates a section using the given (not necessarily empty) instance of default map.
|
Section(Map<Object,Block<?>> defaultMap)
Creates a section using the given (not necessarily empty) instance of default map.
|
| Modifier and Type | Method and Description |
|---|---|
org.snakeyaml.engine.v2.nodes.Node |
ExtendedRepresenter.applyKeyComments(Block<?> block,
org.snakeyaml.engine.v2.nodes.Node node)
Applies the given block's (if not
null) key comments to the given node and returns the given node
itself. |
org.snakeyaml.engine.v2.nodes.Node |
ExtendedRepresenter.applyKeyComments(Block<?> block,
org.snakeyaml.engine.v2.nodes.Node node)
Applies the given block's (if not
null) key comments to the given node and returns the given node
itself. |
org.snakeyaml.engine.v2.nodes.Node |
ExtendedRepresenter.applyValueComments(Block<?> block,
org.snakeyaml.engine.v2.nodes.Node node)
Applies the given block's (if not
null) value comments to the given node and returns the given node
itself. |
org.snakeyaml.engine.v2.nodes.Node |
ExtendedRepresenter.applyValueComments(Block<?> block,
org.snakeyaml.engine.v2.nodes.Node node)
Applies the given block's (if not
null) value comments to the given node and returns the given node
itself. |
Copyright © 2022. All rights reserved.