Uses of Class
com.ultikits.ultitools.config.convert.ConverterRegistry.Context
Packages that use ConverterRegistry.Context
Package
Description
Module-extensible conversion between Java values and the configuration plain-data model.
-
Uses of ConverterRegistry.Context in com.ultikits.ultitools.config.convert
Methods in com.ultikits.ultitools.config.convert that return ConverterRegistry.ContextModifier and TypeMethodDescriptionThe nested context carries the file's value at the nested location: the entry undersegmentwhen the file value is a map, the element at that index when it is a list andsegmentis an index, else none.Methods in com.ultikits.ultitools.config.convert with parameters of type ConverterRegistry.ContextModifier and TypeMethodDescriptionprivate <T> TConverterRegistry.invokeRead(ConfigConverter<?> converter, Object plain, ConverterRegistry.Context ctx) private ObjectConverterRegistry.invokeWrite(ConfigConverter<Object> converter, Object value, ConverterRegistry.Context ctx) private static ObjectLegacyParserAdapter.legacyInput(Object plain, ConverterRegistry.Context ctx) private ConfigParser<?> LegacyParserAdapter.parser(ConverterRegistry.Context ctx) private <T> TConverterRegistry.read(Object plain, ConverterRegistry.Context ctx) private ObjectConverterRegistry.readSerializable(Object plain, Class<? extends org.bukkit.configuration.serialization.ConfigurationSerializable> factory, ConverterRegistry.Context ctx) private voidConverterRegistry.scanFileKeys(ConverterRegistry.Context ctx, List<List<String>> found) Descends where the writer descends: only through declared types the generic converter writes.private voidConverterRegistry.scanFileList(ConverterRegistry.Context ctx, Class<?> raw, List<List<String>> found) Scans each list element by its index, where the declared type is an array or a collection.private voidConverterRegistry.scanFileMap(ConverterRegistry.Context ctx, List<List<String>> found) Reports this map level's ambiguous typed keys, then scans every entry's value by its file key text.private ObjectConverterRegistry.write(Object value, ConverterRegistry.Context ctx) -
Uses of ConverterRegistry.Context in com.ultikits.ultitools.config.convert.builtin
Methods in com.ultikits.ultitools.config.convert.builtin with parameters of type ConverterRegistry.ContextModifier and TypeMethodDescriptionprivate static ObjectGenericConverters.construct(Class<?> raw, ConverterRegistry.Context ctx) GenericConverters.fileKeyIndex(ConverterRegistry.Context ctx, Type keyType) Indexes the keys of the map the file holds atctx's location by the typed key each reads back to, throughkeyTypeand the same registry read path the loader uses.private static ObjectBukkitConverters.hydrate(Object plain, ConverterRegistry.Context ctx) BukkitConverters.hydrateValues(Map<?, ?> plain, ConverterRegistry.Context ctx) private static StringGenericConverters.keyText(Object plain, Object javaKey, Type keyType, ConverterRegistry.Context keyContext) The text a converted map key is written under.private static Collection<Object> GenericConverters.newCollection(Class<?> raw, Type element, ConverterRegistry.Context ctx) GenericConverters.newMap(Class<?> raw, Type key, ConverterRegistry.Context ctx) static ObjectPlainNormalizer.normalize(Object value, ConverterRegistry.Context ctx) Converts a known output container and dispatches non-plain leaves through the module registry.private static voidGenericConverters.readElements(List<?> plain, Type element, ConverterRegistry.Context ctx, Collection<Object> values) private static ObjectGenericConverters.readEnum(Object plain, Class<?> raw, ConverterRegistry.Context ctx) GenericConverters.writeMap(Map<?, ?> value, ConverterRegistry.Context ctx) Writes each entry under the file's own key text for its key when the file value at this location holds one (the first in file order), else under the key's verified text, and descends into the value under that text so nested maps bind too.