Class TreePath


  • public class TreePath
    extends Object
    TreePath represents an n-gram formatted path corresponding to a branch in a tree of Maps and Lists

    See package-info for more details

    Author:
    [email protected]
    • Method Detail

      • reset

        public void reset()
      • hasNext

        public boolean hasNext()
      • nextIndex

        public int nextIndex()
      • hasPrev

        public boolean hasPrev()
      • prevIndex

        public int prevIndex()
      • path

        public String path()
        Returns:
        An n-gram path from the first key to the current key (inclusive)
      • origin

        public String origin()
        Returns:
        An n-gram path from the first key to the current key (inclusive)
      • remainder

        public String remainder()
        Returns:
        An n-gram path from the current key to the last key (inclusive)
      • first

        public String first()
        Returns:
        first element in the JSONPath
      • last

        public String last()
        Returns:
        last element in the JSONPath
      • curr

        public String curr()
        Returns:
        current element pointed to by the path iterator
      • length

        public int length()
      • subPath

        public String subPath​(int firstIndex,
                              int lastIndex)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object