| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final SimpleConfigObject | |
| private final boolean | |
| private final boolean | |
| private static final long | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | SimpleConfigObject(ConfigOrigin origin, Map<String, AbstractConfigValue> value, ResolveStatus status, boolean ignoresFallbacks)
|
| 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 v)Implements java. Returns |
| pack-priv static final SimpleConfigObject | |
| pack-priv static final SimpleConfigObject | |
| pack-priv static final SimpleConfigObject | |
| 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 | |
| private static boolean | |
| private static int | |
| protected SimpleConfigObject | mergedWithObject(AbstractConfigObject abstractFallback)
Implements abstract com.
|
| private SimpleConfigObject | |
| private SimpleConfigObject | |
| private SimpleConfigObject | |
| protected SimpleConfigObject | newCopy(ResolveStatus newStatus, ConfigOrigin newOrigin)
Implements abstract com.
|
| pack-priv SimpleConfigObject | relativized(final 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, ConfigRenderOptions options)
Implements abstract com.
|
| public SimpleConfigObject | 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 Map | unwrapped()
Implements com. Recursively unwraps the object, returning a map from String to whatever plain Java values are unwrapped from the object's values. |
| public Collection | values()
Implements java. Returns a |
| protected SimpleConfigObject | |
| public SimpleConfigObject | 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 SimpleConfigObject | withOnlyPath(Path path)
Implements abstract com.
|
| protected SimpleConfigObject | withOnlyPathOrNull(Path path)
Implements abstract com.
|
| public SimpleConfigObject | withoutKey(String
key to remove key)Implements abstract com. Implements com. Clone the object with the given key removed. |
| pack-priv SimpleConfigObject | withoutPath(Path path)
Implements abstract com.
|
| public SimpleConfigObject | withValue(String
key to add key, ConfigValue value at the new key v)Implements abstract com. Implements com. Returns a |
| pack-priv SimpleConfigObject | withValue(Path path, ConfigValue v)
Implements abstract com.
|
| private Object |
| EMPTY_NAME | back to summary |
|---|---|
| private static final String EMPTY_NAME | |
| emptyInstance | back to summary |
|---|---|
| private static final SimpleConfigObject emptyInstance | |
| ignoresFallbacks | back to summary |
|---|---|
| private final boolean ignoresFallbacks | |
| resolved | back to summary |
|---|---|
| private final boolean resolved | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private final Map<String, AbstractConfigValue> value | |
| SimpleConfigObject | back to summary |
|---|---|
| pack-priv SimpleConfigObject(ConfigOrigin origin, Map<String, AbstractConfigValue> value, ResolveStatus status, boolean ignoresFallbacks) | |
| SimpleConfigObject | back to summary |
|---|---|
| pack-priv SimpleConfigObject(ConfigOrigin origin, Map<String, AbstractConfigValue> value) | |
| 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 v) Implements java. Doc from java. Returns | |
| empty | back to summary |
|---|---|
| pack-priv static final SimpleConfigObject empty() | |
| empty | back to summary |
|---|---|
| pack-priv static final SimpleConfigObject empty(ConfigOrigin origin) | |
| emptyMissing | back to summary |
|---|---|
| pack-priv static final SimpleConfigObject emptyMissing(ConfigOrigin baseOrigin) | |
| 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 | |
| mapEquals | back to summary |
|---|---|
| private static boolean mapEquals(Map<String, ConfigValue> a, Map<String, ConfigValue> b) | |
| mapHash | back to summary |
|---|---|
| private static int mapHash(Map<String, ConfigValue> m) | |
| mergedWithObject | back to summary |
|---|---|
| protected SimpleConfigObject mergedWithObject(AbstractConfigObject abstractFallback) Implements abstract com.
| |
| modify | back to summary |
|---|---|
| private SimpleConfigObject modify(AbstractConfigValue. | |
| modifyMayThrow | back to summary |
|---|---|
| private SimpleConfigObject modifyMayThrow(AbstractConfigValue. | |
| newCopy | back to summary |
|---|---|
| private SimpleConfigObject newCopy(ResolveStatus newStatus, ConfigOrigin newOrigin, boolean newIgnoresFallbacks) | |
| newCopy | back to summary |
|---|---|
| protected SimpleConfigObject newCopy(ResolveStatus newStatus, ConfigOrigin newOrigin) Implements abstract com.
| |
| relativized | back to summary |
|---|---|
| pack-priv SimpleConfigObject relativized(final 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, ConfigRenderOptions options) Implements abstract com.
| |
| replaceChild | back to summary |
|---|---|
| public SimpleConfigObject 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
| |
| unwrapped | back to summary |
|---|---|
| public Map Implements com. Doc from com. Recursively unwraps the object, returning a map from String to whatever plain Java values are unwrapped from the object's values.
| |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| withFallbacksIgnored | back to summary |
|---|---|
| protected SimpleConfigObject withFallbacksIgnored() Overrides com.
| |
| withOnlyKey | back to summary |
|---|---|
| public SimpleConfigObject 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 SimpleConfigObject withOnlyPath(Path path) Implements abstract com.
| |
| withOnlyPathOrNull | back to summary |
|---|---|
| protected SimpleConfigObject withOnlyPathOrNull(Path path) Implements abstract com.
| |
| withoutKey | back to summary |
|---|---|
| public SimpleConfigObject 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 SimpleConfigObject withoutPath(Path path) Implements abstract com.
| |
| withValue | back to summary |
|---|---|
| public SimpleConfigObject withValue(String key, ConfigValue v) Implements abstract com. Implements com. Doc from com. Returns a
| |
| withValue | back to summary |
|---|---|
| pack-priv SimpleConfigObject withValue(Path path, ConfigValue v) Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() throws ObjectStreamException | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(String
the first object to be compared. a, String the second object to be compared. b)Implements java. Compares its two arguments for order. |
| private static boolean |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| RenderComparator | back to summary |
|---|---|
| private RenderComparator() | |
| compare | back to summary |
|---|---|
| public int compare(String a, String b) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| isAllDigits | back to summary |
|---|---|
| private static boolean isAllDigits(String s) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ResolveContext | |
| pack-priv final Path | |
| pack-priv final ResolveSource |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractConfigValue |
| context | back to summary |
|---|---|
| pack-priv ResolveContext context | |
| originalRestrict | back to summary |
|---|---|
| pack-priv final Path originalRestrict | |
| source | back to summary |
|---|---|
| pack-priv final ResolveSource source | |
| ResolveModifier | back to summary |
|---|---|
| pack-priv ResolveModifier(ResolveContext context, ResolveSource source) | |
| modifyChildMayThrow | back to summary |
|---|---|
| public AbstractConfigValue modifyChildMayThrow(String key, AbstractConfigValue v) throws NotPossibleToResolve Implements com.
| |