Method: Config#entry_set

Defined in:
lib/hocon/config.rb

#entry_setObject

Returns the set of path-value pairs, excluding any null values, found by recursing #root() the root object. Note that this is very different from root().entrySet() which returns the set of immediate-child keys in the root object and includes null values. <p> Entries contain path expressions meaning there may be quoting and escaping involved. Parse path expressions with ConfigUtil#splitPath. <p> Because a Config is conceptually a single-level map from paths to values, there will not be any ConfigObject values in the entries (that is, all entries represent leaf nodes). Use ConfigObject rather than Config if you want a tree. (OK, this is a slight lie: Config entries may contain ConfigList and the lists may contain objects. But no objects are directly included as entry values.)

Returns:

  • set of paths with non-null values, built up by recursing the entire tree of ConfigObject and creating an entry for each leaf value.

Raises:



423
424
425
# File 'lib/hocon/config.rb', line 423

def entry_set
  raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of `Config` must implement `entry_set` (#{self.class})"
end