Class StemPath<V extends StemPathEntry>

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<V>, Collection<V>, List<V>, RandomAccess

    public class StemPath<V extends StemPathEntry>
    extends ArrayList<V>
    A path in a stem. Unlike the . (child of operator) these have been resolved and can be passed around. They are of the form
         (` | · ) vpath0 (` | · ) vpath1 (` | · ) ...
     
    where each component is vencoded. E.g.
         `0`foo$2Ebar`back$60tick
     
    or
         ·0·foo$2Ebar·back$60tick
     
    I.e. a raised dot or backtick means that no tail resolution should take place.

    Contract

    This contains only v-encoded elements. There are setters to optional encode if needed, but it is up to the programmer to make sure of the integrity of the entries.

    Created by Jeff Gaynor
    on 6/7/21 at 8:51 AM

    See Also:
    Serialized Form
    • Constructor Detail

      • StemPath

        public StemPath()
    • Method Detail

      • isPath

        public static boolean isPath​(String path)
      • parsePath

        public void parsePath​(String path)
      • toPath

        public String toPath​(boolean useUnicode)
      • main

        public static void main​(String[] args)