Class DataPath
java.lang.Object
com.github.darksoulq.abyssallib.common.config.DataPath
Represents a parsed hierarchical data path for querying and mutating nested structures.
Supported Path Syntaxes:
- Standard Key:
"inventory" - Nested Nodes:
"inventory.weapon.damage" - List Indices:
"players[3]" - Root List Index:
"[0]" - Complex Chains:
"players[3].inventory.weapon[0].damage"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents an array or list positional index.static final recordRepresents a dictionary or map key segment.static interfaceRepresents a singular conceptual step within a hierarchical data structure. -
Method Summary
-
Method Details
-
of
-
segments
- Returns:
- An immutable list of the parsed segments.
-
isEmpty
public boolean isEmpty()- Returns:
- True if the path contains zero segments.
-
asString
Reconstructs the string representation of the parsed path.- Returns:
- The canonical path string.
-