Contains static utility methods.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConfigUtil.type
Members list
Value members
Concrete methods
Converts a list of keys to a path expression, by quoting the path elements as needed and then joining them separated by a period. A path expression is usable with a Config, while individual path elements are usable with a ConfigObject.
Converts a list of keys to a path expression, by quoting the path elements as needed and then joining them separated by a period. A path expression is usable with a Config, while individual path elements are usable with a ConfigObject.
See the overview documentation for Config for more detail on path expressions vs. keys.
Value parameters
- elements
-
the keys in the path
Attributes
- Returns
-
a path expression
- Throws
-
ConfigException
if there are no elements
Converts a list of strings to a path expression, by quoting the path elements as needed and then joining them separated by a period. A path expression is usable with a Config, while individual path elements are usable with a ConfigObject.
Converts a list of strings to a path expression, by quoting the path elements as needed and then joining them separated by a period. A path expression is usable with a Config, while individual path elements are usable with a ConfigObject.
See the overview documentation for Config for more detail on path expressions vs. keys.
Value parameters
- elements
-
the keys in the path
Attributes
- Returns
-
a path expression
- Throws
-
ConfigException
if the list is empty
Quotes and escapes a string, as in the JSON specification.
Quotes and escapes a string, as in the JSON specification.
Value parameters
- s
-
a string
Attributes
- Returns
-
the string quoted and escaped
Converts a path expression into a list of keys, by splitting on period and unquoting the individual path elements. A path expression is usable with a Config, while individual path elements are usable with a ConfigObject.
Converts a path expression into a list of keys, by splitting on period and unquoting the individual path elements. A path expression is usable with a Config, while individual path elements are usable with a ConfigObject.
See the overview documentation for Config for more detail on path expressions vs. keys.
Value parameters
- path
-
a path expression
Attributes
- Returns
-
the individual keys in the path
- Throws
-
ConfigException
if the path expression is invalid