@Override
    public ParseResult parsePath(String path) {
      String root = null;
      if (path.startsWith("$")) {
        root = "$";
        path = path.substring(1);
      }

      return new ParseResult(root, splitter().split(path));
    }
Arbitrary path type with $ as the root, / as the separator and \ as an alternate separator.
jimfs/src/test/java/com/google/common/jimfs/PathTypeTest.java