| Modifier and Type | Field and Description |
|---|---|
| private final SimpleConfig |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract AbstractConfigValue | Returns: the value of the key, or null if known not to existkey to look up key)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. |
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| protected AbstractConfigObject | |
| public abstract AbstractConfigValue | get(Object
key to look up key)Redeclares com. Gets a |
| protected abstract AbstractConfigObject | |
| pack-priv static ConfigOrigin | |
| pack-priv static ConfigOrigin | |
| protected abstract AbstractConfigObject | |
| protected AbstractConfigObject | newCopy(ConfigOrigin origin)
Implements abstract com.
|
| protected final AbstractConfigValue | Returns: the unmodified raw value or nullThis looks up the key with no transformation or type conversion of any kind, and returns null if the key is not present. |
| protected AbstractConfigValue | |
| private static AbstractConfigValue | |
| public ConfigValue | put(String
key with which the specified value is to be associated arg0, ConfigValue value to be associated with the specified key arg1)Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends String, ? extends ConfigValue>
mappings to be stored in this map arg0)Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| pack-priv abstract AbstractConfigObject | relativized(final Path prefix)
Overrides 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. |
| public ConfigValue | remove(Object
key whose mapping is to be removed from the map arg0)Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| protected abstract void | render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options)
Overrides com.
|
| pack-priv abstract ResolveResult | resolveSubstitutions(ResolveContext
state of the current resolve context, ResolveSource where to look up values source)Overrides com. Called only by ResolveContext.resolve(). |
| public SimpleConfig | toConfig()
Implements com. Converts this object to a |
| public AbstractConfigObject | |
| public ConfigValueType | valueType()
Implements com. The |
| private static UnsupportedOperationException | |
| public AbstractConfigObject | 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 abstract AbstractConfigObject | withOnlyKey(String
key to keep key)Redeclares com. Clone the object with only the given key (and its children) retained; all sibling keys are removed. |
| pack-priv abstract AbstractConfigObject | |
| protected abstract AbstractConfigObject | |
| public AbstractConfigObject | withOrigin(ConfigOrigin
the origin set on the returned value origin)Overrides com. Implements com. Returns a |
| public abstract AbstractConfigObject | withoutKey(String
key to remove key)Redeclares com. Clone the object with the given key removed. |
| pack-priv abstract AbstractConfigObject | |
| public abstract AbstractConfigObject | withValue(String
key to add key, ConfigValue value at the new key value)Redeclares com. Returns a |
| pack-priv abstract AbstractConfigObject |
| config | back to summary |
|---|---|
| private final SimpleConfig config | |
| AbstractConfigObject | back to summary |
|---|---|
| protected AbstractConfigObject(ConfigOrigin origin) | |
| attemptPeekWithPartialResolve | back to summary |
|---|---|
| pack-priv abstract AbstractConfigValue attemptPeekWithPartialResolve(String key) 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.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| constructDelayedMerge | back to summary |
|---|---|
| protected AbstractConfigObject constructDelayedMerge(ConfigOrigin origin, List<AbstractConfigValue> stack) Overrides com.
| |
| get | back to summary |
|---|---|
| public abstract AbstractConfigValue get(Object key) Redeclares com. Doc from com. Gets a
| |
| mergedWithObject | back to summary |
|---|---|
| protected abstract AbstractConfigObject mergedWithObject(AbstractConfigObject fallback) Overrides com.
| |
| mergeOrigins | back to summary |
|---|---|
| pack-priv static ConfigOrigin mergeOrigins(Collection<? extends AbstractConfigValue> stack) | |
| mergeOrigins | back to summary |
|---|---|
| pack-priv static ConfigOrigin mergeOrigins(AbstractConfigObject... stack) | |
| newCopy | back to summary |
|---|---|
| protected abstract AbstractConfigObject newCopy(ResolveStatus status, ConfigOrigin origin) | |
| newCopy | back to summary |
|---|---|
| protected AbstractConfigObject newCopy(ConfigOrigin origin) Implements abstract com.
| |
| peekAssumingResolved | back to summary |
|---|---|
| protected final AbstractConfigValue peekAssumingResolved(String key, Path originalPath) This looks up the key with no transformation or type conversion of any kind, and returns null if the key is not present. The object must be resolved along the nodes needed to get the key or ConfigException.NotResolved will be thrown.
| |
| peekPath | back to summary |
|---|---|
| protected AbstractConfigValue peekPath(Path path) Looks up the path with no transformation or type conversion. Returns null if the path is not found; throws ConfigException.NotResolved if we need to go through an unresolved node to look up the path. | |
| peekPath | back to summary |
|---|---|
| private static AbstractConfigValue peekPath(AbstractConfigObject self, Path path) | |
| put | back to summary |
|---|---|
| public ConfigValue put(String arg0, ConfigValue arg1) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends String, ? extends ConfigValue> arg0) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling
| |
| relativized | back to summary |
|---|---|
| pack-priv abstract AbstractConfigObject relativized(final Path prefix) Overrides 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.
| |
| remove | back to summary |
|---|---|
| public ConfigValue remove(Object arg0) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| render | back to summary |
|---|---|
| protected abstract void render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options) Overrides com.
| |
| resolveSubstitutions | back to summary |
|---|---|
| pack-priv abstract ResolveResult Overrides com. Doc from com. Called only by ResolveContext.resolve().
| |
| toConfig | back to summary |
|---|---|
| public SimpleConfig toConfig() Implements com. Doc from com. Converts this object to a
| |
| toFallbackValue | back to summary |
|---|---|
| public AbstractConfigObject toFallbackValue() Overrides com. Implements com.
| |
| valueType | back to summary |
|---|---|
| public ConfigValueType valueType() Implements com. Doc from com. The
| |
| weAreImmutable | back to summary |
|---|---|
| private static UnsupportedOperationException weAreImmutable(String method) | |
| withFallback | back to summary |
|---|---|
| public AbstractConfigObject 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 abstract AbstractConfigObject withOnlyKey(String key) Redeclares 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 abstract AbstractConfigObject withOnlyPath(Path path) | |
| withOnlyPathOrNull | back to summary |
|---|---|
| protected abstract AbstractConfigObject withOnlyPathOrNull(Path path) | |
| withOrigin | back to summary |
|---|---|
| public AbstractConfigObject withOrigin(ConfigOrigin origin) Overrides com. Implements com. Doc from com. Returns a
| |
| withoutKey | back to summary |
|---|---|
| public abstract AbstractConfigObject withoutKey(String key) Redeclares com. Doc from com. Clone the object with the given key removed.
| |
| withoutPath | back to summary |
|---|---|
| pack-priv abstract AbstractConfigObject withoutPath(Path path) | |
| withValue | back to summary |
|---|---|
| public abstract AbstractConfigObject withValue(String key, ConfigValue value) Redeclares com. Doc from com. Returns a
| |
| withValue | back to summary |
|---|---|
| pack-priv abstract AbstractConfigObject withValue(Path path, ConfigValue value) | |