| Modifier and Type | Class and Description |
|---|---|
| protected static interface | |
| protected abstract class | |
| pack-priv static class | AbstractConfigValue.
This exception means that a value is inherently not resolveable, at the moment the only known cause is a cycle of substitutions. |
| Modifier and Type | Field and Description |
|---|---|
| private final SimpleConfigOrigin |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| pack-priv SimpleConfig | |
| public SimpleConfig | atKey(String
key to store this value at. key)Implements com. Places the value inside a |
| pack-priv SimpleConfig | |
| public SimpleConfig | atPath(String
path to store this value at. pathExpression)Implements com. Places the value inside a |
| protected boolean | |
| protected AbstractConfigValue | |
| private final AbstractConfigValue | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| protected static boolean | |
| public int | |
| protected boolean | |
| protected boolean | |
| protected static void | |
| protected final AbstractConfigValue | |
| protected AbstractConfigValue | |
| protected final AbstractConfigValue | |
| protected AbstractConfigValue | |
| protected final AbstractConfigValue | |
| protected AbstractConfigValue | |
| protected abstract AbstractConfigValue | |
| public SimpleConfigOrigin | origin()
Implements com. The origin of the value (file, line number, etc.), for debugging and error messages. |
| pack-priv AbstractConfigValue | Returns: value relativized to the given path or the same value if nothing to doThis 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 | |
| protected void | |
| public final String | render()
Implements com. Renders the config value as a HOCON string. |
| public final String | render(ConfigRenderOptions
the rendering options options)Implements com. Renders the config value to a string, using the provided options. |
| protected static List | replaceChildInList(List<AbstractConfigValue> list, AbstractConfigValue child, AbstractConfigValue replacement)
|
| protected final void | |
| pack-priv ResolveStatus | |
| pack-priv ResolveResult | Returns: a new value if there were changes, or this if no changesstate of the current resolve context, ResolveSource where to look up values source)Called only by ResolveContext.resolve(). |
| public AbstractConfigValue | |
| public String | |
| pack-priv String | |
| public AbstractConfigValue | withFallback(ConfigMergeable
an object whose keys should be used as fallbacks, if the keys
are not present in this one mergeable)Implements com. Returns a new value computed by merging this value with another, with keys in this value "winning" over the other one. |
| protected AbstractConfigValue | |
| public AbstractConfigValue | withOrigin(ConfigOrigin
the origin set on the returned value origin)Implements com. Returns a |
| origin | back to summary |
|---|---|
| private final SimpleConfigOrigin origin | |
| AbstractConfigValue | back to summary |
|---|---|
| pack-priv AbstractConfigValue(ConfigOrigin origin) | |
| appendHiddenEnvVariableValue | back to summary |
|---|---|
| protected void appendHiddenEnvVariableValue(StringBuilder sb) | |
| atKey | back to summary |
|---|---|
| pack-priv SimpleConfig atKey(ConfigOrigin origin, String key) | |
| atKey | back to summary |
|---|---|
| public SimpleConfig atKey(String key) Implements com. Doc from com. Places the value inside a
| |
| atPath | back to summary |
|---|---|
| pack-priv SimpleConfig atPath(ConfigOrigin origin, Path path) | |
| atPath | back to summary |
|---|---|
| public SimpleConfig atPath(String pathExpression) Implements com. Doc from com. Places the value inside a
| |
| canEqual | back to summary |
|---|---|
| protected boolean canEqual(Object other) | |
| constructDelayedMerge | back to summary |
|---|---|
| protected AbstractConfigValue constructDelayedMerge(ConfigOrigin origin, List<AbstractConfigValue> stack) | |
| delayMerge | back to summary |
|---|---|
| private final AbstractConfigValue delayMerge(Collection<AbstractConfigValue> stack, AbstractConfigValue fallback) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hasDescendantInList | back to summary |
|---|---|
| protected static boolean hasDescendantInList(List<AbstractConfigValue> list, AbstractConfigValue descendant) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hideEnvVariableValue | back to summary |
|---|---|
| protected boolean hideEnvVariableValue(ConfigRenderOptions options) | |
| ignoresFallbacks | back to summary |
|---|---|
| protected boolean ignoresFallbacks() | |
| indent | back to summary |
|---|---|
| protected static void indent(StringBuilder sb, int indent, ConfigRenderOptions options) | |
| mergedWithNonObject | back to summary |
|---|---|
| protected final AbstractConfigValue mergedWithNonObject(Collection<AbstractConfigValue> stack, AbstractConfigValue fallback) | |
| mergedWithNonObject | back to summary |
|---|---|
| protected AbstractConfigValue mergedWithNonObject(AbstractConfigValue fallback) | |
| mergedWithObject | back to summary |
|---|---|
| protected final AbstractConfigValue mergedWithObject(Collection<AbstractConfigValue> stack, AbstractConfigObject fallback) | |
| mergedWithObject | back to summary |
|---|---|
| protected AbstractConfigValue mergedWithObject(AbstractConfigObject fallback) | |
| mergedWithTheUnmergeable | back to summary |
|---|---|
| protected final AbstractConfigValue mergedWithTheUnmergeable(Collection<AbstractConfigValue> stack, Unmergeable fallback) | |
| mergedWithTheUnmergeable | back to summary |
|---|---|
| protected AbstractConfigValue mergedWithTheUnmergeable(Unmergeable fallback) | |
| newCopy | back to summary |
|---|---|
| protected abstract AbstractConfigValue newCopy(ConfigOrigin origin) | |
| origin | back to summary |
|---|---|
| public SimpleConfigOrigin origin() Implements com. Doc from com. The origin of the value (file, line number, etc.), for debugging and error messages.
| |
| relativized | back to summary |
|---|---|
| pack-priv AbstractConfigValue relativized(Path prefix) 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) | |
| render | back to summary |
|---|---|
| protected void render(StringBuilder sb, int indent, boolean atRoot, ConfigRenderOptions options) | |
| render | back to summary |
|---|---|
| public final String render() Implements com. Doc from com. Renders the config value as a HOCON string. This method is primarily intended for debugging, so it tries to add helpful comments and whitespace.
If the config value has not been resolved (see
This method is equivalent to
| |
| render | back to summary |
|---|---|
| public final String render(ConfigRenderOptions options) Implements com. Doc from com. Renders the config value to a string, using the provided options.
If the config value has not been resolved (see If the config value has been resolved and the options disable all HOCON-specific features (such as comments), the rendering will be valid JSON. If you enable HOCON-only features such as comments, the rendering will not be valid JSON.
| |
| replaceChildInList | back to summary |
|---|---|
| protected static List | |
| requireNotIgnoringFallbacks | back to summary |
|---|---|
| protected final void requireNotIgnoringFallbacks() | |
| resolveStatus | back to summary |
|---|---|
| pack-priv ResolveStatus resolveStatus() | |
| resolveSubstitutions | back to summary |
|---|---|
| pack-priv ResolveResult Called only by ResolveContext.resolve().
| |
| toFallbackValue | back to summary |
|---|---|
| public AbstractConfigValue toFallbackValue() Implements com.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| transformToString | back to summary |
|---|---|
| pack-priv String transformToString() | |
| withFallback | back to summary |
|---|---|
| public AbstractConfigValue withFallback(ConfigMergeable mergeable) 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.
| |
| withFallbacksIgnored | back to summary |
|---|---|
| protected AbstractConfigValue withFallbacksIgnored() | |
| withOrigin | back to summary |
|---|---|
| public AbstractConfigValue withOrigin(ConfigOrigin origin) Implements com. Doc from com. Returns a
| |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractConfigValue |
| modifyChildMayThrow | back to summary |
|---|---|
| public AbstractConfigValue modifyChildMayThrow(String keyOrNull, AbstractConfigValue v) throws Exception | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract AbstractConfigValue | |
| public final AbstractConfigValue |
| NoExceptionsModifier | back to summary |
|---|---|
| protected NoExceptionsModifier() | |
| modifyChild | back to summary |
|---|---|
| pack-priv abstract AbstractConfigValue modifyChild(String keyOrNull, AbstractConfigValue v) | |
| modifyChildMayThrow | back to summary |
|---|---|
| public final AbstractConfigValue modifyChildMayThrow(String keyOrNull, AbstractConfigValue v) throws Exception Implements com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| traceString | back to summary |
|---|---|
| private final String traceString | |
| NotPossibleToResolve | back to summary |
|---|---|
| pack-priv NotPossibleToResolve(ResolveContext context) | |
| traceString | back to summary |
|---|---|
| pack-priv String traceString() | |