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 TypeMethodDescriptionvoidchangeValue(String value) The behaviour for changing this thing's value, if possible.boolean@Nullable NodeObtains the immediate child node at this (direct) key.getKey()Key of this node.getValue()inthashCode()booleanThis is called beforeAnyValued.changeValue(Object).@UnknownNullability Stringvalue()Methods inherited from class Node
debug, getComment, getConfig, getCurrentNode, getIndentation, getLine, getParent, getPath, getPathSteps, invalidate, isVoid, move, name, remove, rename, save, save, splitLine, splitLine, toString, validMethods inherited from interface AnyNamed
nameComponent, setName, setName, supportsNameChangeMethods inherited from interface AnyValued
changeValueSafely, convertedValue, resetValueMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface NodeNavigator
getNodeAt, getNodeAt, getValue, iterator
-
Constructor Details
-
EntryNode
-
EntryNode
-
-
Method Details
-
getKey
-
getValue
-
value
-
setValue
-
changeValue
Description copied from interface:AnyValuedThe 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:
changeValuein interfaceAnyValued<String>- Parameters:
value- The new value- Throws:
UnsupportedOperationException- If this is impossible
-
valueType
-
supportsValueChange
public boolean supportsValueChange()Description copied from interface:AnyValuedThis is called beforeAnyValued.changeValue(Object). If the result is false, setting the value will never be attempted.- Specified by:
supportsValueChangein interfaceAnyValued<String>- Returns:
- Whether this supports being set
-
get
Description copied from interface:NodeNavigatorObtains 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:
getin interfaceNodeNavigator- Parameters:
step- The name of the node- Returns:
- The child node if one is present, otherwise
null
-
equals
-
hashCode
-