Class ReflectiveCollector
java.lang.Object
org.polyfrost.oneconfig.api.config.v1.collect.impl.ReflectiveCollector
- All Implemented Interfaces:
org.polyfrost.oneconfig.api.config.v1.collect.PropertyCollector
- Direct Known Subclasses:
OneConfigCollector
public abstract class ReflectiveCollector
extends Object
implements org.polyfrost.oneconfig.api.config.v1.collect.PropertyCollector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.polyfrost.oneconfig.api.config.v1.Treevoidprotected abstract voidhandleField(@NotNull Field f, @NotNull Object src, @NotNull org.polyfrost.oneconfig.api.config.v1.Tree tree) protected abstract voidhandleInnerClass(@NotNull Class<?> c, @NotNull Object src, int depth, @NotNull org.polyfrost.oneconfig.api.config.v1.Tree tree) protected abstract voidhandleMethod(@NotNull Method m, @NotNull Object src, @NotNull org.polyfrost.oneconfig.api.config.v1.Tree tree)
-
Field Details
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER -
maxDepth
protected final int maxDepth
-
-
Constructor Details
-
ReflectiveCollector
public ReflectiveCollector(int maxDepth)
-
-
Method Details
-
collect
@Nullable public @Nullable org.polyfrost.oneconfig.api.config.v1.Tree collect(@NotNull @NotNull Object src) - Specified by:
collectin interfaceorg.polyfrost.oneconfig.api.config.v1.collect.PropertyCollector
-
handleField
-
handleMethod
-
handleInnerClass
-
handle
public void handle(@NotNull @NotNull org.polyfrost.oneconfig.api.config.v1.Tree tree, @NotNull @NotNull Object src, int depth)
-