Enhanced documentation for Java classes

This commit is contained in:
Valentyn Kolesnikov
2024-02-02 09:07:48 +02:00
committed by Valentyn Kolesnikov
parent 010e83b925
commit 99c84fdf3a
9 changed files with 68 additions and 1 deletions

View File

@@ -29,11 +29,20 @@ public class ParserConfiguration {
*/
protected int maxNestingDepth;
/**
* Constructs a new ParserConfiguration with default settings.
*/
public ParserConfiguration() {
this.keepStrings = false;
this.maxNestingDepth = DEFAULT_MAXIMUM_NESTING_DEPTH;
}
/**
* Constructs a new ParserConfiguration with the specified settings.
*
* @param keepStrings A boolean indicating whether to preserve strings during parsing.
* @param maxNestingDepth An integer representing the maximum allowed nesting depth.
*/
protected ParserConfiguration(final boolean keepStrings, final int maxNestingDepth) {
this.keepStrings = keepStrings;
this.maxNestingDepth = maxNestingDepth;