Class VoidNode

java.lang.Object
ch.njol.skript.config.Node
ch.njol.skript.config.VoidNode
All Implemented Interfaces:
NodeNavigator, AnyNamed, AnyProvider, Iterable<Node>, Validated
Direct Known Subclasses:
InvalidNode

public class VoidNode extends Node
An empty line or a comment.

The subclass InvalidNode is used for invalid non-empty nodes, i.e. where a parsing error occurred.

  • Method Details

    • getKey

      public String getKey()
      Description copied from class: Node
      Key of this node. null for empty or invalid nodes, and the config's main node.
      Overrides:
      getKey in class Node
    • set

      public void set(String s)
    • get

      @Nullable public @Nullable Node get(String key)
      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. an EntryNode) then it must return null.
      Parameters:
      key - The name of the node
      Returns:
      The child node if one is present, otherwise null