Interface INbtPathNavigation

All Known Implementing Classes:
NbtPathNavigationAdapter, NbtPathNavigationLeafWildcard, NbtPathNavigationLinkWildcard, NbtPathNavigationList

public interface INbtPathNavigation
Datastructure that represents a concrete key-based navigation path that can be derived from a JSON path.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the child navigation of the given key, or null if it is not present.
    boolean
    Check if the given key is a leaf in this navigation, i.e., it is present and has no children.
  • Method Details

    • isLeafKey

      boolean isLeafKey(String key)
      Check if the given key is a leaf in this navigation, i.e., it is present and has no children.
      Parameters:
      key - A key.
      Returns:
      If it is a leaf key.
    • getNext

      @Nullable INbtPathNavigation getNext(String key)
      Get the child navigation of the given key, or null if it is not present.
      Parameters:
      key - A key.
      Returns:
      The child navigation or null.