public interface Commentable
| Modifier and Type | Method and Description |
|---|---|
default String |
getComment(String path)
Retrieve the block comment of the section or value selected by path.
|
String |
getComment(String path,
CommentType type)
Retrieve the comment of the section or value selected by path.
|
default void |
setComment(String path,
String comment)
Set a block comment above the section or value selected by path.
|
void |
setComment(String path,
String comment,
CommentType type)
Set a comment to the section or value selected by path.
|
void setComment(String path, String comment, CommentType type)
path - path of desired section or keycomment - the comment to add, # symbol is not neededtype - either above (BLOCK) or SIDEdefault void setComment(String path, String comment)
path - path of desired section or keycomment - the comment to add, # symbol is not neededString getComment(String path, CommentType type)
path - path of desired section or keytype - either above (BLOCK) or SIDECopyright © 2023. All rights reserved.