Skip navigation links
A C D E F G H I L M N O P R S T U V Y 

A

add(Class<T>, Function<C, ConfigTypeSerializer<C, T>>) - Method in class net.lenni0451.optconfig.serializer.TypeSerializerList
Add a new type serializer to the list.
addMigrator(int, int, Class<? extends ConfigMigrator>) - Method in class net.lenni0451.optconfig.index.types.ConfigIndex
 
addOption(ConfigOption) - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
addSubSection(ConfigOption, SectionIndex) - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
annotationType() - Method in class net.lenni0451.optconfig.annotations.internal.DummyNotReloadable
 
annotationType() - Method in class net.lenni0451.optconfig.index.dummy.DummyDescription
 
annotationType() - Method in class net.lenni0451.optconfig.index.dummy.DummyOption
 
appendComment(NodeTuple, int, String...) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
appendComment(Node, int, String...) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
ArrayUtils - Class in net.lenni0451.optconfig.utils
 
ArrayUtils() - Constructor for class net.lenni0451.optconfig.utils.ArrayUtils
 

C

castInstance(Object...) - Method in interface net.lenni0451.optconfig.access.types.ConstructorAccess
Create a new instance of the target class with the given arguments and cast it to the wanted type.
castValue(Object) - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
Get the value of the field from the given instance and cast it to the wanted type.
CheckSuperclasses - Annotation Type in net.lenni0451.optconfig.annotations
Check all superclasses of the annotated class for OptConfig annotations.
CircularDependencyException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when a circular option dependency is detected.
CircularDependencyException(String) - Constructor for exception net.lenni0451.optconfig.exceptions.CircularDependencyException
 
ClassAccess - Interface in net.lenni0451.optconfig.access.types
A class which can be accessed by optconfig (e.g. using reflection).
ClassAccessFactory - Interface in net.lenni0451.optconfig.access
A factory to create ClassAccess instances for a specific class.
ClassIndexer - Class in net.lenni0451.optconfig.index
 
ClassIndexer() - Constructor for class net.lenni0451.optconfig.index.ClassIndexer
 
ClassUtils - Class in net.lenni0451.optconfig.utils
 
ClassUtils() - Constructor for class net.lenni0451.optconfig.utils.ClassUtils
 
clazz - Variable in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
config - Variable in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
The instance of the config class.
CONFIG_VERSION_OPTION - Static variable in annotation type net.lenni0451.optconfig.annotations.OptConfig
 
ConfigContext<C> - Class in net.lenni0451.optconfig
 
ConfigDiff - Class in net.lenni0451.optconfig.index
 
ConfigIndex - Class in net.lenni0451.optconfig.index.types
 
ConfigIndex(ConfigType, Class<?>, OptConfig) - Constructor for class net.lenni0451.optconfig.index.types.ConfigIndex
 
ConfigIndex.Migrator - Class in net.lenni0451.optconfig.index.types
 
ConfigIndex.MigratorIndex - Class in net.lenni0451.optconfig.index.types
 
ConfigLoader<C> - Class in net.lenni0451.optconfig
The config loader providing methods to load instanced and static configs.
ConfigLoader(Class<C>) - Constructor for class net.lenni0451.optconfig.ConfigLoader
 
ConfigLoader(Class<C>, Consumer<LoaderOptions>, Consumer<DumperOptions>) - Constructor for class net.lenni0451.optconfig.ConfigLoader
 
ConfigMigrator - Interface in net.lenni0451.optconfig.migrate
A migrator that can be used to migrate the config values to a new version.
ConfigNotAnnotatedException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when a config class is not annotated with OptConfig.
ConfigNotAnnotatedException(Class<?>) - Constructor for exception net.lenni0451.optconfig.exceptions.ConfigNotAnnotatedException
 
ConfigOption - Class in net.lenni0451.optconfig.index.types
 
ConfigOption(FieldAccess, Option, Description, NotReloadable, TypeSerializer, Hidden, Order, Map<String, MethodAccess>, ClassAccess) - Constructor for class net.lenni0451.optconfig.index.types.ConfigOption
 
ConfigOptions - Class in net.lenni0451.optconfig
The options to configure the behavior of the config loader.
ConfigOptions() - Constructor for class net.lenni0451.optconfig.ConfigOptions
 
ConfigProvider - Interface in net.lenni0451.optconfig.provider
A provider to load and save the config content.
ConfigType - Enum in net.lenni0451.optconfig.index
 
ConfigTypeSerializer<C,T> - Class in net.lenni0451.optconfig.serializer
A serializer translating between yaml objects and the correct type.
ConfigTypeSerializer(C) - Constructor for class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
 
constructor - Variable in class net.lenni0451.optconfig.access.impl.reflection.ReflectionConstructorAccess
 
ConstructorAccess - Interface in net.lenni0451.optconfig.access.types
A constructor which can be accessed by optconfig (e.g. using reflection).
copyComments(MappingNode, MappingNode) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
copyValues(Node, Node) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
create(Class<?>) - Method in interface net.lenni0451.optconfig.access.ClassAccessFactory
Create a new ClassAccess instance for the given class.
createTypeSerializer(ConfigLoader<C>, Class<C>, C) - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
createYaml(Consumer<LoaderOptions>, Consumer<DumperOptions>) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 

D

DEFAULT_VERSION - Static variable in annotation type net.lenni0451.optconfig.annotations.OptConfig
 
dependencies() - Method in class net.lenni0451.optconfig.index.dummy.DummyOption
 
DependencySorter - Class in net.lenni0451.optconfig.index
 
DependencySorter() - Constructor for class net.lenni0451.optconfig.index.DependencySorter
 
Description - Annotation Type in net.lenni0451.optconfig.annotations
Set a default description for the option.
deserialize(Object) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Deserializes the given yaml object to the type T.
deserialize(Class<T>, Object) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Deserializes the given yaml object to the type T.
deserialize(Class<T>, T, Object) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Deserializes the given yaml object to the type T.
deserialize(TypeSerializerList<C>, Class<T>, T, Object) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Deserializes the given yaml object to the type T.
deserialize(Class<Enum>, Object) - Method in class net.lenni0451.optconfig.serializer.impl.GenericEnumSerializer
 
deserialize(TypeSerializerList<C>, Class<List>, List, Object) - Method in class net.lenni0451.optconfig.serializer.impl.GenericListSerializer
 
deserialize(TypeSerializerList<C>, Class<Map>, Map, Object) - Method in class net.lenni0451.optconfig.serializer.impl.GenericMapSerializer
 
deserialize(TypeSerializerList<C>, Class<Object>, Object, Object) - Method in class net.lenni0451.optconfig.serializer.impl.GenericTypeSerializer
 
deserialize(Object) - Method in class net.lenni0451.optconfig.serializer.impl.StringTypeSerializer
 
diff(SectionIndex, Map<String, Object>) - Static method in class net.lenni0451.optconfig.index.ConfigDiff
 
DummyDescription - Class in net.lenni0451.optconfig.index.dummy
 
DummyDescription(String...) - Constructor for class net.lenni0451.optconfig.index.dummy.DummyDescription
 
DummyFieldAccess - Class in net.lenni0451.optconfig.index.dummy
 
DummyFieldAccess(String, Class<?>, Object) - Constructor for class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
DummyNotReloadable - Class in net.lenni0451.optconfig.annotations.internal
 
DummyNotReloadable() - Constructor for class net.lenni0451.optconfig.annotations.internal.DummyNotReloadable
 
DummyOption - Class in net.lenni0451.optconfig.index.dummy
 
DummyOption(String) - Constructor for class net.lenni0451.optconfig.index.dummy.DummyOption
 
DuplicateOptionException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when two or more options with the same name are registered.
DuplicateOptionException(String) - Constructor for exception net.lenni0451.optconfig.exceptions.DuplicateOptionException
 

E

EmptyConfigException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when a config class does not contain any options.
EmptyConfigException(Class<?>) - Constructor for exception net.lenni0451.optconfig.exceptions.EmptyConfigException
 
equals(Node, Node) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
exists() - Method in interface net.lenni0451.optconfig.provider.ConfigProvider
 
exists() - Method in class net.lenni0451.optconfig.provider.impl.MemoryConfigProvider
 
exists() - Method in class net.lenni0451.optconfig.provider.impl.PathConfigProvider
 

F

field - Variable in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
FieldAccess - Interface in net.lenni0451.optconfig.access.types
A field which can be accessed by optconfig (e.g. using reflection).
file(File) - Static method in interface net.lenni0451.optconfig.provider.ConfigProvider
Create a new PathConfigProvider with the given file.

G

generator() - Method in class net.lenni0451.optconfig.index.dummy.DummyDescription
 
GenericEnumSerializer<C> - Class in net.lenni0451.optconfig.serializer.impl
A generic serializer for enums.
GenericEnumSerializer(C) - Constructor for class net.lenni0451.optconfig.serializer.impl.GenericEnumSerializer
 
GenericListSerializer<C> - Class in net.lenni0451.optconfig.serializer.impl
A generic serializer for lists.
GenericListSerializer(C) - Constructor for class net.lenni0451.optconfig.serializer.impl.GenericListSerializer
 
GenericMapSerializer<C> - Class in net.lenni0451.optconfig.serializer.impl
A generic serializer for maps.
GenericMapSerializer(C) - Constructor for class net.lenni0451.optconfig.serializer.impl.GenericMapSerializer
 
GenericTypeSerializer<C> - Class in net.lenni0451.optconfig.serializer.impl
The default serializer that just returns the object without any changes.
GenericTypeSerializer(C) - Constructor for class net.lenni0451.optconfig.serializer.impl.GenericTypeSerializer
 
get(C, Class<T>) - Method in class net.lenni0451.optconfig.serializer.TypeSerializerList
Get a type serializer for the given type.
get(MappingNode, String) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
getAddedKeys() - Method in class net.lenni0451.optconfig.index.ConfigDiff
 
getAnnotation(Class<T>) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
getAnnotation(Class<T>) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
getAnnotation(Class<T>) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
getAnnotation(Class<T>) - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
Get an annotation of the class.
getAnnotation(Class<T>) - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
Get an annotation of the field.
getAnnotation(Class<T>) - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
Get an annotation of the method.
getAnnotation(Class<T>) - Method in class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
getClazz() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
getClazz() - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
 
getClazz() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
getCollectionType(Collection<?>) - Static method in class net.lenni0451.optconfig.utils.ClassUtils
 
getCommonType(Class<?>, Class<?>) - Static method in class net.lenni0451.optconfig.utils.ClassUtils
 
getConfigClass() - Method in class net.lenni0451.optconfig.ConfigContext
 
getConfigInstance() - Method in class net.lenni0451.optconfig.ConfigContext
 
getConfigOptions() - Method in class net.lenni0451.optconfig.ConfigLoader
 
getConfigType() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
getConfigVersion() - Method in exception net.lenni0451.optconfig.exceptions.OutdatedClassVersionException
 
getConstructor(Class<?>...) - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
Get a constructor with the given parameter types.
getConstructors() - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleClassAccess
 
getConstructors() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
getConstructors() - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
 
getCurrentValues(Object) - Method in class net.lenni0451.optconfig.index.types.SectionIndex
Get the current values of all config option.
getDependencies() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getDescription() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getFieldAccess() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getFields() - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleClassAccess
 
getFields() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
getFields() - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
 
getHeader() - Method in class net.lenni0451.optconfig.index.types.ConfigIndex
 
getInnerClasses() - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleClassAccess
 
getInnerClasses() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
getInnerClasses() - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
 
getInternalVersion() - Method in exception net.lenni0451.optconfig.exceptions.OutdatedClassVersionException
 
getInvalidKeys() - Method in class net.lenni0451.optconfig.index.ConfigDiff
 
getMethod(String, Class<?>, Class<?>...) - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
Get a method with the given name and parameter types.
getMethods() - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleClassAccess
 
getMethods() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
getMethods() - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
 
getMigrators() - Method in class net.lenni0451.optconfig.index.types.ConfigIndex
 
getModifiers() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
getModifiers() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
getModifiers() - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
 
getModifiers() - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
 
getModifiers() - Method in class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
getName() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
getName() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
getName() - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
 
getName() - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
 
getName() - Method in class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
getName() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getOption(String) - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
getOptions() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
getOptionsOrder() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
getOrder() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getParameterCount() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
getParameterCount() - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
 
getParameterTypes() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionConstructorAccess
 
getParameterTypes() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
getParameterTypes() - Method in interface net.lenni0451.optconfig.access.types.ConstructorAccess
 
getParameterTypes() - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
 
getRemovedKeys() - Method in class net.lenni0451.optconfig.index.ConfigDiff
 
getReturnType() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
getReturnType() - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
 
getSection(Map<String, Object>, String...) - Method in interface net.lenni0451.optconfig.migrate.ConfigMigrator
Get a section of the values map by the given path.
getSubSections() - Method in class net.lenni0451.optconfig.index.ConfigDiff
 
getSubSections() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
getType() - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
getType() - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
 
getType() - Method in class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
getTypeSerializer() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getTypeSerializers() - Method in class net.lenni0451.optconfig.ConfigLoader
 
getUnrelatedComments(Node, boolean) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
getValidator() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
getValue(Object) - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleFieldAccess
 
getValue(Object) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
getValue(Object) - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
Get the value of the field from the given instance.
getValue(Object) - Method in class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
getVersion() - Method in class net.lenni0451.optconfig.index.types.ConfigIndex
 

H

Hidden - Annotation Type in net.lenni0451.optconfig.annotations
Mark a field as hidden.

I

indexClass(ConfigType, Class<?>, ClassAccessFactory) - Static method in class net.lenni0451.optconfig.index.ClassIndexer
 
indexClass(ConfigType, Class<?>, ClassAccess, ClassAccessFactory, boolean) - Static method in class net.lenni0451.optconfig.index.ClassIndexer
 
initSubSections(ConfigLoader<?>, Object) - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
insert(MappingNode, NodeTuple, int) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
instantiate(ConfigLoader<?>, Class<?>) - Static method in class net.lenni0451.optconfig.utils.ReflectionUtils
 
instantiate(ClassAccessFactory, Class<?>) - Static method in class net.lenni0451.optconfig.utils.ReflectionUtils
 
InvalidDescriptionGeneratorException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when a method has a description generator but is invalid.
InvalidDescriptionGeneratorException(Class<?>, String, String, String) - Constructor for exception net.lenni0451.optconfig.exceptions.InvalidDescriptionGeneratorException
 
InvalidSerializedObjectException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when a serialized object is invalid.
InvalidSerializedObjectException(Class<?>, Class<?>) - Constructor for exception net.lenni0451.optconfig.exceptions.InvalidSerializedObjectException
 
InvalidValidatorException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when a method is annotated with @Validator but is invalid.
InvalidValidatorException(Class<?>, MethodAccess, String) - Constructor for exception net.lenni0451.optconfig.exceptions.InvalidValidatorException
 
invoke(Object, Object...) - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleMethodAccess
 
invoke(Object, Object...) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
invoke(Object, Object...) - Method in interface net.lenni0451.optconfig.access.types.MethodAccess
Invoke the method with the given instance and arguments.
isEmpty() - Method in class net.lenni0451.optconfig.index.ConfigDiff
 
isEmpty() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
isHidden() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 
isReloadable() - Method in class net.lenni0451.optconfig.index.types.ConfigOption
 

L

load(ConfigProvider) - Method in class net.lenni0451.optconfig.ConfigLoader
Load an instanced config from the given path.
load(C, ConfigProvider) - Method in class net.lenni0451.optconfig.ConfigLoader
Load a static config from the given path.
load() - Method in class net.lenni0451.optconfig.MapConfigLoader
Load the config from the config provider.
load() - Method in interface net.lenni0451.optconfig.provider.ConfigProvider
Load the content of the config file.
load() - Method in class net.lenni0451.optconfig.provider.impl.MemoryConfigProvider
 
load() - Method in class net.lenni0451.optconfig.provider.impl.PathConfigProvider
 
loadStatic(ConfigProvider) - Method in class net.lenni0451.optconfig.ConfigLoader
Load a static config from the given path.

M

makeCommentsMutable(Node) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
map(I[], Function<I, O>, IntFunction<O[]>) - Static method in class net.lenni0451.optconfig.utils.ArrayUtils
Map an array from one type to another.
MapConfigLoader - Class in net.lenni0451.optconfig
A config loader for directly loading and saving maps.
MapConfigLoader(ConfigProvider) - Constructor for class net.lenni0451.optconfig.MapConfigLoader
 
MapConfigLoader(ConfigProvider, Consumer<LoaderOptions>, Consumer<DumperOptions>) - Constructor for class net.lenni0451.optconfig.MapConfigLoader
 
matches(int) - Method in enum net.lenni0451.optconfig.index.ConfigType
 
memory(String, Consumer<String>) - Static method in interface net.lenni0451.optconfig.provider.ConfigProvider
Create a new MemoryConfigProvider with the given content and consumer.
memory(Supplier<String>, Consumer<String>) - Static method in interface net.lenni0451.optconfig.provider.ConfigProvider
Create a new MemoryConfigProvider with the given content supplier and consumer.
MemoryConfigProvider - Class in net.lenni0451.optconfig.provider.impl
 
MemoryConfigProvider(Supplier<String>, Consumer<String>) - Constructor for class net.lenni0451.optconfig.provider.impl.MemoryConfigProvider
 
merge(SectionIndex) - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
method - Variable in class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
MethodAccess - Interface in net.lenni0451.optconfig.access.types
A method which can be accessed by optconfig (e.g. using reflection).
MethodHandleClassAccess - Class in net.lenni0451.optconfig.access.impl.methodhandles
A default implementation of ClassAccess using method handles.
MethodHandleClassAccess(MethodHandles.Lookup, Class<?>) - Constructor for class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleClassAccess
 
MethodHandleClassAccess(MethodHandles.Lookup, Class<?>, boolean) - Constructor for class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleClassAccess
 
MethodHandleConstructorAccess - Class in net.lenni0451.optconfig.access.impl.methodhandles
A default implementation of ConstructorAccess using method handles.
MethodHandleConstructorAccess(MethodHandles.Lookup, Constructor<?>) - Constructor for class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleConstructorAccess
 
MethodHandleFieldAccess - Class in net.lenni0451.optconfig.access.impl.methodhandles
A default implementation of FieldAccess using method handles.
MethodHandleFieldAccess(MethodHandles.Lookup, Field) - Constructor for class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleFieldAccess
 
MethodHandleMethodAccess - Class in net.lenni0451.optconfig.access.impl.methodhandles
A default implementation of MethodAccess using method handles.
MethodHandleMethodAccess(MethodHandles.Lookup, Method) - Constructor for class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleMethodAccess
 
migrate(int, Map<String, Object>) - Method in interface net.lenni0451.optconfig.migrate.ConfigMigrator
Migrates the config values to the new version.
migrate(int, Map<String, Object>) - Method in class net.lenni0451.optconfig.migrate.MigratorChain
 
Migrator - Annotation Type in net.lenni0451.optconfig.annotations
Register a migrator class for a config class.
Migrator() - Constructor for class net.lenni0451.optconfig.index.types.ConfigIndex.Migrator
 
MigratorChain - Class in net.lenni0451.optconfig.migrate
A list of migrators that are executed in the order they are added.
MigratorChain(List<ConfigIndex.Migrator>) - Constructor for class net.lenni0451.optconfig.migrate.MigratorChain
 
MigratorIndex() - Constructor for class net.lenni0451.optconfig.index.types.ConfigIndex.MigratorIndex
 
Migrators - Annotation Type in net.lenni0451.optconfig.annotations.internal
Internal annotation to register multiple migrator classes for a config class.

N

net.lenni0451.optconfig - package net.lenni0451.optconfig
 
net.lenni0451.optconfig.access - package net.lenni0451.optconfig.access
 
net.lenni0451.optconfig.access.impl.methodhandles - package net.lenni0451.optconfig.access.impl.methodhandles
 
net.lenni0451.optconfig.access.impl.reflection - package net.lenni0451.optconfig.access.impl.reflection
 
net.lenni0451.optconfig.access.types - package net.lenni0451.optconfig.access.types
 
net.lenni0451.optconfig.annotations - package net.lenni0451.optconfig.annotations
 
net.lenni0451.optconfig.annotations.internal - package net.lenni0451.optconfig.annotations.internal
 
net.lenni0451.optconfig.exceptions - package net.lenni0451.optconfig.exceptions
 
net.lenni0451.optconfig.index - package net.lenni0451.optconfig.index
 
net.lenni0451.optconfig.index.dummy - package net.lenni0451.optconfig.index.dummy
 
net.lenni0451.optconfig.index.types - package net.lenni0451.optconfig.index.types
 
net.lenni0451.optconfig.migrate - package net.lenni0451.optconfig.migrate
 
net.lenni0451.optconfig.provider - package net.lenni0451.optconfig.provider
 
net.lenni0451.optconfig.provider.impl - package net.lenni0451.optconfig.provider.impl
 
net.lenni0451.optconfig.serializer - package net.lenni0451.optconfig.serializer
 
net.lenni0451.optconfig.serializer.impl - package net.lenni0451.optconfig.serializer.impl
 
net.lenni0451.optconfig.utils - package net.lenni0451.optconfig.utils
 
newInstance(Object...) - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleConstructorAccess
 
newInstance(Object...) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionConstructorAccess
 
newInstance(Object...) - Method in interface net.lenni0451.optconfig.access.types.ConstructorAccess
Create a new instance of the target class with the given arguments.
NotReloadable - Annotation Type in net.lenni0451.optconfig.annotations
Mark a field as not reloadable.

O

OptConfig - Annotation Type in net.lenni0451.optconfig.annotations
Mark a class as an OptConfig class.
Option - Annotation Type in net.lenni0451.optconfig.annotations
Mark a field as an option.
Order - Annotation Type in net.lenni0451.optconfig.annotations
Give a field a custom order in the config file.
OutdatedClassVersionException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when the version of the config file is higher than the version of the config class.
OutdatedClassVersionException(int, int) - Constructor for exception net.lenni0451.optconfig.exceptions.OutdatedClassVersionException
 

P

path(Path) - Static method in interface net.lenni0451.optconfig.provider.ConfigProvider
Create a new PathConfigProvider with the given path.
PathConfigProvider - Class in net.lenni0451.optconfig.provider.impl
 
PathConfigProvider(Path) - Constructor for class net.lenni0451.optconfig.provider.impl.PathConfigProvider
 

R

recurse(Node, Consumer<Node>) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
ReflectionClassAccess - Class in net.lenni0451.optconfig.access.impl.reflection
A default implementation of ClassAccess using reflection.
ReflectionClassAccess(Class<?>) - Constructor for class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
ReflectionClassAccess(Class<?>, boolean) - Constructor for class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 
ReflectionConstructorAccess - Class in net.lenni0451.optconfig.access.impl.reflection
A default implementation of ConstructorAccess using reflection.
ReflectionConstructorAccess(Constructor<?>) - Constructor for class net.lenni0451.optconfig.access.impl.reflection.ReflectionConstructorAccess
 
ReflectionFieldAccess - Class in net.lenni0451.optconfig.access.impl.reflection
A default implementation of FieldAccess using reflection.
ReflectionFieldAccess(Field) - Constructor for class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
ReflectionMethodAccess - Class in net.lenni0451.optconfig.access.impl.reflection
A default implementation of MethodAccess using reflection.
ReflectionMethodAccess(Method) - Constructor for class net.lenni0451.optconfig.access.impl.reflection.ReflectionMethodAccess
 
ReflectionUtils - Class in net.lenni0451.optconfig.utils
 
ReflectionUtils() - Constructor for class net.lenni0451.optconfig.utils.ReflectionUtils
 
reload() - Method in class net.lenni0451.optconfig.ConfigContext
Reload all reloadable config values.
remove(MappingNode, String) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
removeLeadingBlankLines(Node) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
replace(MappingNode, NodeTuple, NodeTuple) - Static method in class net.lenni0451.optconfig.utils.YamlUtils
 
reverse(T[]) - Static method in class net.lenni0451.optconfig.utils.ArrayUtils
Reverse an array in place.
reverseInnerClasses - Variable in class net.lenni0451.optconfig.access.impl.reflection.ReflectionClassAccess
 

S

save() - Method in class net.lenni0451.optconfig.ConfigContext
Save the current config values to the config file.
save(Map<String, Object>) - Method in class net.lenni0451.optconfig.MapConfigLoader
Save the given config to the config provider.
save(String) - Method in interface net.lenni0451.optconfig.provider.ConfigProvider
Save the content to the config file.
save(String) - Method in class net.lenni0451.optconfig.provider.impl.MemoryConfigProvider
 
save(String) - Method in class net.lenni0451.optconfig.provider.impl.PathConfigProvider
 
searchMigrator(ConfigLoader<?>, int, int) - Method in class net.lenni0451.optconfig.index.types.ConfigIndex
 
Section - Annotation Type in net.lenni0451.optconfig.annotations
Mark a class as a config section.
SectionIndex - Class in net.lenni0451.optconfig.index.types
 
SectionIndex(ConfigType, Class<?>) - Constructor for class net.lenni0451.optconfig.index.types.SectionIndex
 
serialize(T) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Serializes the given object to a yaml object.
serialize(Class<T>, T) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Serializes the given object to a yaml object.
serialize(TypeSerializerList<C>, Class<T>, T) - Method in class net.lenni0451.optconfig.serializer.ConfigTypeSerializer
Serializes the given object to a yaml object.
serialize(Enum) - Method in class net.lenni0451.optconfig.serializer.impl.GenericEnumSerializer
 
serialize(TypeSerializerList<C>, Class<List>, List) - Method in class net.lenni0451.optconfig.serializer.impl.GenericListSerializer
 
serialize(TypeSerializerList<C>, Class<Map>, Map) - Method in class net.lenni0451.optconfig.serializer.impl.GenericMapSerializer
 
serialize(TypeSerializerList<C>, Class<Object>, Object) - Method in class net.lenni0451.optconfig.serializer.impl.GenericTypeSerializer
 
serialize(String) - Method in class net.lenni0451.optconfig.serializer.impl.StringTypeSerializer
 
setAddMissingOptions(boolean) - Method in class net.lenni0451.optconfig.ConfigOptions
Set if missing options should be added to the config.
setClassAccessFactory(ClassAccessFactory) - Method in class net.lenni0451.optconfig.ConfigOptions
Set the factory for the ClassAccess instances.
setCommentSpacing(int) - Method in class net.lenni0451.optconfig.ConfigOptions
Set the spacing between the comment start and the comment text.
setDefaultValueComparator(BiPredicate<Object, Object>) - Method in class net.lenni0451.optconfig.ConfigOptions
Set the comparator for the default values of the options.
setNotReloadableComment(boolean) - Method in class net.lenni0451.optconfig.ConfigOptions
Automatically add a comment to options that are marked with NotReloadable.
setRemoveUnknownOptions(boolean) - Method in class net.lenni0451.optconfig.ConfigOptions
Set if unknown options should be removed from the config.
setResetInvalidOptions(boolean) - Method in class net.lenni0451.optconfig.ConfigOptions
Set if invalid options should be reset to their default value.
setRewriteConfig(boolean) - Method in class net.lenni0451.optconfig.ConfigOptions
Set if the config should be rewritten when loading it.
setSpaceBetweenOptions(boolean) - Method in class net.lenni0451.optconfig.ConfigOptions
Set if there should be an empty line between each option.
setValue(Object, Object) - Method in class net.lenni0451.optconfig.access.impl.methodhandles.MethodHandleFieldAccess
 
setValue(Object, Object) - Method in class net.lenni0451.optconfig.access.impl.reflection.ReflectionFieldAccess
 
setValue(Object, Object) - Method in interface net.lenni0451.optconfig.access.types.FieldAccess
Set the value of the field for the given instance.
setValue(Object, Object) - Method in class net.lenni0451.optconfig.index.dummy.DummyFieldAccess
 
sortOptions(List<ConfigOption>) - Static method in class net.lenni0451.optconfig.index.DependencySorter
Sorts a list of ConfigOption objects based on their dependencies.
sortOptions() - Method in class net.lenni0451.optconfig.index.types.SectionIndex
 
StringTypeSerializer<C> - Class in net.lenni0451.optconfig.serializer.impl
A serializer for the String type.
StringTypeSerializer(C, boolean) - Constructor for class net.lenni0451.optconfig.serializer.impl.StringTypeSerializer
 

T

tryGetConstructor(Class<?>...) - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
Try to get a constructor with the given parameter types.
tryGetMethod(String, Class<?>, Class<?>...) - Method in interface net.lenni0451.optconfig.access.types.ClassAccess
Try to get a method with the given name and parameter types.
TypeSerializer - Annotation Type in net.lenni0451.optconfig.annotations
Set a type serializer for an option.
TypeSerializerList<C> - Class in net.lenni0451.optconfig.serializer
A list of all available type serializers.
TypeSerializerList() - Constructor for class net.lenni0451.optconfig.serializer.TypeSerializerList
 

U

UnknownDependencyException - Exception in net.lenni0451.optconfig.exceptions
An exception that is thrown when an option has a dependency to an option that does not exist.
UnknownDependencyException(String, String) - Constructor for exception net.lenni0451.optconfig.exceptions.UnknownDependencyException
 
unsafeCast(Object) - Static method in class net.lenni0451.optconfig.utils.ReflectionUtils
Deprecated.

V

Validator - Annotation Type in net.lenni0451.optconfig.annotations
Mark a method as a validator for an option.
value() - Method in class net.lenni0451.optconfig.index.dummy.DummyDescription
 
value() - Method in class net.lenni0451.optconfig.index.dummy.DummyOption
 
valueOf(String) - Static method in enum net.lenni0451.optconfig.index.ConfigType
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.lenni0451.optconfig.index.ConfigType
Returns an array containing the constants of this enum type, in the order they are declared.

Y

YamlUtils - Class in net.lenni0451.optconfig.utils
 
YamlUtils() - Constructor for class net.lenni0451.optconfig.utils.YamlUtils
 
A C D E F G H I L M N O P R S T U V Y 
Skip navigation links