Package ch.njol.skript.config
Class EntryNode
java.lang.Object
ch.njol.skript.config.Node
ch.njol.skript.config.EntryNode
- All Implemented Interfaces:
NodeNavigator
,AnyNamed
,AnyProvider
,AnyValued<String>
,Iterable<Node>
,Map.Entry<String,
,String> Validated
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEntryNode
(String key, String value, SectionNode parent) EntryNode
(String key, String value, String comment, SectionNode parent, int lineNum) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeValue
(String value) The behaviour for changing this thing's value, if possible.boolean
@Nullable Node
Obtains the immediate child node at this (direct) key.getKey()
Key of this node.getValue()
int
hashCode()
boolean
This is called beforeAnyValued.changeValue(Object)
.@UnknownNullability String
value()
Methods inherited from class ch.njol.skript.config.Node
debug, getComment, getConfig, getCurrentNode, getIndentation, getLine, getParent, getPath, getPathSteps, invalidate, isVoid, move, name, remove, rename, save, save, splitLine, splitLine, toString, valid
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.njol.skript.lang.util.common.AnyNamed
setName, supportsNameChange
Methods inherited from interface ch.njol.skript.lang.util.common.AnyValued
changeValueSafely, convertedValue, resetValue
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface ch.njol.skript.config.NodeNavigator
getNodeAt, getNodeAt, getValue, iterator
-
Constructor Details
-
EntryNode
-
EntryNode
-
-
Method Details
-
getKey
Description copied from class:Node
Key of this node. null for empty or invalid nodes, and the config's main node. -
getValue
-
value
-
setValue
-
changeValue
Description copied from interface:AnyValued
The behaviour for changing this thing's value, if possible. If not possible, thenAnyValued.supportsValueChange()
should return false and this may throw an error.- Specified by:
changeValue
in interfaceAnyValued<String>
- Parameters:
value
- The new value- Throws:
UnsupportedOperationException
- If this is impossible
-
valueType
-
supportsValueChange
public boolean supportsValueChange()Description copied from interface:AnyValued
This is called beforeAnyValued.changeValue(Object)
. If the result is false, setting the value will never be attempted.- Specified by:
supportsValueChange
in interfaceAnyValued<String>
- Returns:
- Whether this supports being set
-
get
Description copied from interface:NodeNavigator
Obtains the immediate child node at this (direct) key. If this does not represent a node that can have children (e.g. anEntryNode
) then it must returnnull
.- Specified by:
get
in interfaceNodeNavigator
- Parameters:
step
- The name of the node- Returns:
- The child node if one is present, otherwise
null
-
equals
-
hashCode
public int hashCode()
-