Class RootNodeContext
- java.lang.Object
-
- org.geysermc.configutils.node.context.NodeContext
-
- org.geysermc.configutils.node.context.RootNodeContext
-
public final class RootNodeContext extends NodeContext
-
-
Constructor Summary
Constructors Constructor Description RootNodeContext(@NonNull RegisteredCodecs registeredCodecs, @NonNull NodeOptions options, @NonNull java.lang.reflect.AnnotatedType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisteredCodecscodecs()intconfigVersion()java.lang.StringfullKey()Returns the full key of the node.@Nullable java.lang.Stringkey()Returns the key of this node, or null if this is the root node.NodeOptionsoptions()-
Methods inherited from class org.geysermc.configutils.node.context.NodeContext
changed, codec, codecFor, createChildContext, init, markChanged, meta, type
-
-
-
-
Constructor Detail
-
RootNodeContext
public RootNodeContext(@NonNull RegisteredCodecs registeredCodecs, @NonNull NodeOptions options, @NonNull java.lang.reflect.AnnotatedType type)
-
-
Method Detail
-
codecs
public RegisteredCodecs codecs()
- Specified by:
codecsin classNodeContext
-
options
public NodeOptions options()
- Specified by:
optionsin classNodeContext
-
configVersion
public int configVersion()
- Specified by:
configVersionin classNodeContext
-
fullKey
public java.lang.String fullKey()
Description copied from class:NodeContextReturns the full key of the node. This combines the parent full key (if it has a parent) and its own key. In contrast toNodeContext.key(), the root node will return an empty string instead of null.- Specified by:
fullKeyin classNodeContext
-
key
public @Nullable java.lang.String key()
Description copied from class:NodeContextReturns the key of this node, or null if this is the root node.- Specified by:
keyin classNodeContext
-
-