| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractConfigValue | attemptPeekWithPartialResolve(String
key to look up key)Implements abstract com. Look up the key on an only-partially-resolved object, with no transformation or type conversion of any kind; if 'this' is not resolved then try to look up the key anyway if possible. |
| protected boolean | |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. Returns |
| public Set | entrySet()
Implements java. Returns a |
| public boolean | equals(Object
object to be compared for equality with this map other)Overrides com. Implements java. Compares the specified object with this map for equality. |
| public AbstractConfigValue | get(Object
key to look up key)Implements abstract com. Implements com. Gets a |
| public boolean | hasDescendant(AbstractConfigValue descendant)
Implements com. Super-expensive full traversal to see if descendant is anywhere underneath this container. |
| public int | hashCode()
Overrides com. Implements java. Returns the hash code value for this map. |
| protected boolean | |
| public boolean | |
| public Set | |
| public AbstractConfigValue | makeReplacement(ResolveContext context, int skipping)
Implements com. Make a replacement for this object skipping the given number of elements which are lower in merge priority. |
| protected final ConfigDelayedMergeObject | |
| protected final ConfigDelayedMergeObject | mergedWithObject(AbstractConfigObject fallback)
Implements abstract com.
|
| protected final ConfigDelayedMergeObject | |
| protected ConfigDelayedMergeObject | newCopy(ResolveStatus status, ConfigOrigin origin)
Implements abstract com.
|
| private static ConfigException | |
| pack-priv ConfigDelayedMergeObject | relativized(Path prefix)
Implements abstract com. This is used when including one file in another; the included file is relativized to the path it's included into in the parent file. |
| protected void | render(StringBuilder sb, int indent, boolean atRoot, String atKey, ConfigRenderOptions options)
Overrides com.
|
| protected void | render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options)
Implements abstract com.
|
| public AbstractConfigValue | replaceChild(AbstractConfigValue child, AbstractConfigValue replacement)
Implements com. Replace a child of this value. |
| pack-priv ResolveStatus | |
| pack-priv ResolveResult | resolveSubstitutions(ResolveContext
state of the current resolve context, ResolveSource where to look up values source)Implements abstract com. Called only by ResolveContext.resolve(). |
| public int | |
| public Collection | |
| public Map | unwrapped()
Implements com. Returns the value as a plain Java boxed value, that is, a |
| public Collection | values()
Implements java. Returns a |
| public ConfigDelayedMergeObject | withFallback(ConfigMergeable
an object whose keys should be used as fallbacks, if the keys
are not present in this one mergeable)Overrides com. Implements com. Returns a new value computed by merging this value with another, with keys in this value "winning" over the other one. |
| public ConfigDelayedMergeObject | withOnlyKey(String
key to keep key)Implements abstract com. Implements com. Clone the object with only the given key (and its children) retained; all sibling keys are removed. |
| pack-priv AbstractConfigObject | withOnlyPath(Path path)
Implements abstract com.
|
| protected AbstractConfigObject | withOnlyPathOrNull(Path path)
Implements abstract com.
|
| public ConfigDelayedMergeObject | withoutKey(String
key to remove key)Implements abstract com. Implements com. Clone the object with the given key removed. |
| pack-priv AbstractConfigObject | withoutPath(Path path)
Implements abstract com.
|
| public ConfigDelayedMergeObject | withValue(String
key to add key, ConfigValue value at the new key value)Implements abstract com. Implements com. Returns a |
| pack-priv ConfigDelayedMergeObject | withValue(Path path, ConfigValue value)
Implements abstract com.
|
| stack | back to summary |
|---|---|
| private final List<AbstractConfigValue> stack | |
| ConfigDelayedMergeObject | back to summary |
|---|---|
| pack-priv ConfigDelayedMergeObject(ConfigOrigin origin, List<AbstractConfigValue> stack) | |
| attemptPeekWithPartialResolve | back to summary |
|---|---|
| protected AbstractConfigValue attemptPeekWithPartialResolve(String key) Implements abstract com. Doc from com. Look up the key on an only-partially-resolved object, with no transformation or type conversion of any kind; if 'this' is not resolved then try to look up the key anyway if possible.
| |
| canEqual | back to summary |
|---|---|
| protected boolean canEqual(Object other) Overrides com.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides com. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| get | back to summary |
|---|---|
| public AbstractConfigValue get(Object key) Implements abstract com. Implements com. Doc from com. Gets a
| |
| hasDescendant | back to summary |
|---|---|
| public boolean hasDescendant(AbstractConfigValue descendant) Implements com. Doc from com. Super-expensive full traversal to see if descendant is anywhere underneath this container.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| ignoresFallbacks | back to summary |
|---|---|
| protected boolean ignoresFallbacks() Overrides com.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| makeReplacement | back to summary |
|---|---|
| public AbstractConfigValue makeReplacement(ResolveContext context, int skipping) Implements com. Doc from com. Make a replacement for this object skipping the given number of elements which are lower in merge priority.
| |
| mergedWithNonObject | back to summary |
|---|---|
| protected final ConfigDelayedMergeObject mergedWithNonObject(AbstractConfigValue fallback) Overrides com.
| |
| mergedWithObject | back to summary |
|---|---|
| protected final ConfigDelayedMergeObject mergedWithObject(AbstractConfigObject fallback) Implements abstract com.
| |
| mergedWithTheUnmergeable | back to summary |
|---|---|
| protected final ConfigDelayedMergeObject mergedWithTheUnmergeable(Unmergeable fallback) Overrides com.
| |
| newCopy | back to summary |
|---|---|
| protected ConfigDelayedMergeObject newCopy(ResolveStatus status, ConfigOrigin origin) Implements abstract com.
| |
| notResolved | back to summary |
|---|---|
| private static ConfigException notResolved() | |
| relativized | back to summary |
|---|---|
| pack-priv ConfigDelayedMergeObject relativized(Path prefix) Implements abstract com. Doc from com. This is used when including one file in another; the included file is relativized to the path it's included into in the parent file. The point is that if you include a file at foo.bar in the parent, and the included file as a substitution ${a.b.c}, the included substitution now needs to be ${foo.bar.a.b.c} because we resolve substitutions globally only after parsing everything.
| |
| render | back to summary |
|---|---|
| protected void render(StringBuilder sb, int indent, boolean atRoot, String atKey, ConfigRenderOptions options) Overrides com.
| |
| render | back to summary |
|---|---|
| protected void render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options) Implements abstract com.
| |
| replaceChild | back to summary |
|---|---|
| public AbstractConfigValue replaceChild(AbstractConfigValue child, AbstractConfigValue replacement) Implements com. Doc from com. Replace a child of this value. CAUTION if replacement is null, delete the child, which may also delete the parent, or make the parent into a non-container.
| |
| resolveStatus | back to summary |
|---|---|
| pack-priv ResolveStatus resolveStatus() Overrides com.
| |
| resolveSubstitutions | back to summary |
|---|---|
| pack-priv ResolveResult Implements abstract com. Doc from com. Called only by ResolveContext.resolve().
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| unmergedValues | back to summary |
|---|---|
| public Collection Implements com.
| |
| unwrapped | back to summary |
|---|---|
| public Map Implements com. Doc from com. Returns the value as a plain Java boxed value, that is, a | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| withFallback | back to summary |
|---|---|
| public ConfigDelayedMergeObject withFallback(ConfigMergeable mergeable) Overrides com. Implements com. Doc from com. Returns a new value computed by merging this value with another, with keys in this value "winning" over the other one. This associative operation may be used to combine configurations from multiple sources (such as multiple configuration files). The semantics of merging are described in the spec for HOCON. Merging typically occurs when either the same object is created twice in the same file, or two config files are both loaded. For example:
foo = { a: 42 }
foo = { b: 43 }
Here, the two objects are merged as if you had written:
foo = { a: 42, b: 43 }
Only
foo = { a: 42 }
foo = 10
Here, the number 10 "wins" and the value of foo would be
simply 10. Again, for details see the spec.
| |
| withOnlyKey | back to summary |
|---|---|
| public ConfigDelayedMergeObject withOnlyKey(String key) Implements abstract com. Implements com. Doc from com. Clone the object with only the given key (and its children) retained; all sibling keys are removed.
| |
| withOnlyPath | back to summary |
|---|---|
| pack-priv AbstractConfigObject withOnlyPath(Path path) Implements abstract com.
| |
| withOnlyPathOrNull | back to summary |
|---|---|
| protected AbstractConfigObject withOnlyPathOrNull(Path path) Implements abstract com.
| |
| withoutKey | back to summary |
|---|---|
| public ConfigDelayedMergeObject withoutKey(String key) Implements abstract com. Implements com. Doc from com. Clone the object with the given key removed.
| |
| withoutPath | back to summary |
|---|---|
| pack-priv AbstractConfigObject withoutPath(Path path) Implements abstract com.
| |
| withValue | back to summary |
|---|---|
| public ConfigDelayedMergeObject withValue(String key, ConfigValue value) Implements abstract com. Implements com. Doc from com. Returns a
| |
| withValue | back to summary |
|---|---|
| pack-priv ConfigDelayedMergeObject withValue(Path path, ConfigValue value) Implements abstract com.
| |