Package ninja.leaping.configurate.hocon
Class HoconConfigurationLoader.Builder
- java.lang.Object
-
- ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
-
- ninja.leaping.configurate.hocon.HoconConfigurationLoader.Builder
-
- Enclosing class:
- HoconConfigurationLoader
public static class HoconConfigurationLoader.Builder extends AbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
Builds aHoconConfigurationLoader.
-
-
Field Summary
-
Fields inherited from class ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder
defaultOptions, headerMode, sink, source
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull HoconConfigurationLoaderbuild()Builds the loader.@NonNull ConfigParseOptionsgetParseOptions()Gets theConfigRenderOptionsto be used by the resultant loader.@NonNull ConfigRenderOptionsgetRenderOptions()Gets theConfigRenderOptionsto be used by the resultant loader.@NonNull HoconConfigurationLoader.BuildersetParseOptions(ConfigParseOptions options)Sets theConfigParseOptionsthe resultant loader should use.@NonNull HoconConfigurationLoader.BuildersetRenderOptions(@NonNull ConfigRenderOptions options)Sets theConfigRenderOptionsthe resultant loader should use.-
Methods inherited from class ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder
getDefaultOptions, getHeaderMode, getSink, getSource, preservesHeader, setDefaultOptions, setDefaultOptions, setFile, setHeaderMode, setPath, setPreservesHeader, setSink, setSource, setURL
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
-
Method Detail
-
setRenderOptions
public @NonNull HoconConfigurationLoader.Builder setRenderOptions(@NonNull ConfigRenderOptions options)
Sets theConfigRenderOptionsthe resultant loader should use.- Parameters:
options- The render options- Returns:
- This builder (for chaining)
-
getRenderOptions
public @NonNull ConfigRenderOptions getRenderOptions()
Gets theConfigRenderOptionsto be used by the resultant loader.- Returns:
- The render options
-
setParseOptions
public @NonNull HoconConfigurationLoader.Builder setParseOptions(ConfigParseOptions options)
Sets theConfigParseOptionsthe resultant loader should use.- Parameters:
options- The parse options- Returns:
- This builder (for chaining)
-
getParseOptions
public @NonNull ConfigParseOptions getParseOptions()
Gets theConfigRenderOptionsto be used by the resultant loader.- Returns:
- The render options
-
build
public @NonNull HoconConfigurationLoader build()
Description copied from class:AbstractConfigurationLoader.BuilderBuilds the loader.- Specified by:
buildin classAbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>- Returns:
- The loader
-
-