| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private ConfigIncluder |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ConfigParseOptions | |
| pack-priv static ConfigObject | |
| public ConfigObject | include(final ConfigIncludeContext
some info about the include context context, String the include statement's argument name)Implements com. Parses another item to be included. |
| public ConfigObject | includeFile(ConfigIncludeContext
some info about the include context context, File the include statement's argument file)Implements com. Parses another item to be included. |
| pack-priv static ConfigObject | |
| public ConfigObject | includeResources(ConfigIncludeContext
some info about the include context context, String the include statement's argument resource)Implements com. Parses another item to be included. |
| pack-priv static ConfigObject | |
| public ConfigObject | includeURL(ConfigIncludeContext
some info about the include context context, URL the include statement's argument url)Implements com. Parses another item to be included. |
| pack-priv static ConfigObject | |
| pack-priv static ConfigObject | |
| pack-priv static FullIncluder | |
| public ConfigIncluder | withFallback(ConfigIncluder
the previous includer for chaining fallback)Implements com. Returns a new includer that falls back to the given includer. |
| fallback | back to summary |
|---|---|
| private ConfigIncluder fallback | |
| SimpleIncluder | back to summary |
|---|---|
| pack-priv SimpleIncluder(ConfigIncluder fallback) | |
| clearForInclude | back to summary |
|---|---|
| pack-priv static ConfigParseOptions clearForInclude(ConfigParseOptions options) | |
| fromBasename | back to summary |
|---|---|
| pack-priv static ConfigObject fromBasename(SimpleIncluder. | |
| include | back to summary |
|---|---|
| public ConfigObject include(final ConfigIncludeContext context, String name) Implements com. Doc from com. Parses another item to be included. The returned object typically would
not have substitutions resolved. You can throw a ConfigException here to
abort parsing, or return an empty object, but may not return null.
This method is used for a "heuristic" include statement that does not
specify file, URL, or classpath resource. If the include statement does
specify, then the same class implementing
| |
| includeFile | back to summary |
|---|---|
| public ConfigObject includeFile(ConfigIncludeContext context, File file) Implements com. Doc from com. Parses another item to be included. The returned object typically would not have substitutions resolved. You can throw a ConfigException here to abort parsing, or return an empty object, but may not return null.
| |
| includeFileWithoutFallback | back to summary |
|---|---|
| pack-priv static ConfigObject includeFileWithoutFallback(final ConfigIncludeContext context, File file) | |
| includeResources | back to summary |
|---|---|
| public ConfigObject includeResources(ConfigIncludeContext context, String resource) Implements com. Doc from com. Parses another item to be included. The returned object typically would not have substitutions resolved. You can throw a ConfigException here to abort parsing, or return an empty object, but may not return null.
| |
| includeResourceWithoutFallback | back to summary |
|---|---|
| pack-priv static ConfigObject includeResourceWithoutFallback(final ConfigIncludeContext context, String resource) | |
| includeURL | back to summary |
|---|---|
| public ConfigObject includeURL(ConfigIncludeContext context, URL url) Implements com. Doc from com. Parses another item to be included. The returned object typically would not have substitutions resolved. You can throw a ConfigException here to abort parsing, or return an empty object, but may not return null.
| |
| includeURLWithoutFallback | back to summary |
|---|---|
| pack-priv static ConfigObject includeURLWithoutFallback(final ConfigIncludeContext context, URL url) | |
| includeWithoutFallback | back to summary |
|---|---|
| pack-priv static ConfigObject includeWithoutFallback(final ConfigIncludeContext context, String name) | |
| makeFull | back to summary |
|---|---|
| pack-priv static FullIncluder makeFull(ConfigIncluder includer) | |
| withFallback | back to summary |
|---|---|
| public ConfigIncluder withFallback(ConfigIncluder fallback) Implements com. Doc from com. Returns a new includer that falls back to the given includer. This is how you can obtain the default includer; it will be provided as a fallback. It's up to your includer to chain to it if you want to. You might want to merge any files found by the fallback includer with any objects you load yourself. It's important to handle the case where you already have the fallback with a "return this", i.e. this method should not create a new object if the fallback is the same one you already have. The same fallback may be added repeatedly.
| |
| Modifier and Type | Method and Description |
|---|---|
| public ConfigParseable |
| nameToParseable | back to summary |
|---|---|
| public ConfigParseable nameToParseable(String name, ConfigParseOptions parseOptions) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConfigIncluder |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ConfigObject | include(ConfigIncludeContext
some info about the include context context, String the include statement's argument what)Implements com. Parses another item to be included. |
| public ConfigObject | includeFile(ConfigIncludeContext
some info about the include context context, File the include statement's argument what)Implements com. Parses another item to be included. |
| public ConfigObject | includeResources(ConfigIncludeContext
some info about the include context context, String the include statement's argument what)Implements com. Parses another item to be included. |
| public ConfigObject | includeURL(ConfigIncludeContext
some info about the include context context, URL the include statement's argument what)Implements com. Parses another item to be included. |
| public ConfigIncluder | withFallback(ConfigIncluder
the previous includer for chaining fallback)Implements com. Returns a new includer that falls back to the given includer. |
| delegate | back to summary |
|---|---|
| pack-priv final ConfigIncluder delegate | |
| Proxy | back to summary |
|---|---|
| pack-priv Proxy(ConfigIncluder delegate) | |
| include | back to summary |
|---|---|
| public ConfigObject include(ConfigIncludeContext context, String what) Implements com. Doc from com. Parses another item to be included. The returned object typically would
not have substitutions resolved. You can throw a ConfigException here to
abort parsing, or return an empty object, but may not return null.
This method is used for a "heuristic" include statement that does not
specify file, URL, or classpath resource. If the include statement does
specify, then the same class implementing
| |
| includeFile | back to summary |
|---|---|
| public ConfigObject includeFile(ConfigIncludeContext context, File what) Implements com. Doc from com. Parses another item to be included. The returned object typically would not have substitutions resolved. You can throw a ConfigException here to abort parsing, or return an empty object, but may not return null.
| |
| includeResources | back to summary |
|---|---|
| public ConfigObject includeResources(ConfigIncludeContext context, String what) Implements com. Doc from com. Parses another item to be included. The returned object typically would not have substitutions resolved. You can throw a ConfigException here to abort parsing, or return an empty object, but may not return null.
| |
| includeURL | back to summary |
|---|---|
| public ConfigObject includeURL(ConfigIncludeContext context, URL what) Implements com. Doc from com. Parses another item to be included. The returned object typically would not have substitutions resolved. You can throw a ConfigException here to abort parsing, or return an empty object, but may not return null.
| |
| withFallback | back to summary |
|---|---|
| public ConfigIncluder withFallback(ConfigIncluder fallback) Implements com. Doc from com. Returns a new includer that falls back to the given includer. This is how you can obtain the default includer; it will be provided as a fallback. It's up to your includer to chain to it if you want to. You might want to merge any files found by the fallback includer with any objects you load yourself. It's important to handle the case where you already have the fallback with a "return this", i.e. this method should not create a new object if the fallback is the same one you already have. The same fallback may be added repeatedly.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigIncludeContext |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ConfigParseable | nameToParseable(String name, ConfigParseOptions options)
Implements com.
|
| context | back to summary |
|---|---|
| private final ConfigIncludeContext context | |
| RelativeNameSource | back to summary |
|---|---|
| pack-priv RelativeNameSource(ConfigIncludeContext context) | |
| nameToParseable | back to summary |
|---|---|
| public ConfigParseable nameToParseable(String name, ConfigParseOptions options) Implements com.
| |