Class NodeContext
- java.lang.Object
-
- org.geysermc.configutils.node.context.NodeContext
-
- Direct Known Subclasses:
ChildNodeContext,RootNodeContext
public abstract class NodeContext extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodeContext(@NonNull java.lang.reflect.AnnotatedType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanchanged()<T> TypeCodec<T>codec()<T> TypeCodec<T>codecFor(java.lang.reflect.AnnotatedType type)abstract RegisteredCodecscodecs()abstract intconfigVersion()NodeContextcreateChildContext(java.lang.reflect.AnnotatedType type, java.lang.String key)abstract java.lang.StringfullKey()Returns the full key of the node.protected voidinit()abstract @Nullable java.lang.Stringkey()Returns the key of this node, or null if this is the root node.voidmarkChanged()MetaOptionsmeta()abstract NodeOptionsoptions()java.lang.reflect.AnnotatedTypetype()
-
-
-
Method Detail
-
init
protected void init()
-
type
public java.lang.reflect.AnnotatedType type()
-
meta
public MetaOptions meta()
-
codec
public <T> TypeCodec<T> codec()
-
codecs
public abstract RegisteredCodecs codecs()
-
codecFor
public <T> TypeCodec<T> codecFor(java.lang.reflect.AnnotatedType type)
-
options
public abstract NodeOptions options()
-
configVersion
public abstract int configVersion()
-
createChildContext
public NodeContext createChildContext(java.lang.reflect.AnnotatedType type, java.lang.String key)
-
fullKey
public abstract java.lang.String fullKey()
Returns the full key of the node. This combines the parent full key (if it has a parent) and its own key. In contrast tokey(), the root node will return an empty string instead of null.
-
key
public abstract @Nullable java.lang.String key()
Returns the key of this node, or null if this is the root node.
-
markChanged
public void markChanged()
-
changed
public boolean changed()
-
-