Class PathType.ParseResult

java.lang.Object
io.roastedroot.zerofs.PathType.ParseResult
Enclosing class:
PathType

public static final class PathType.ParseResult extends Object
Simple result of parsing a path.
  • Field Details

    • root

      private final String root
    • names

      private final String[] names
  • Constructor Details

    • ParseResult

      public ParseResult(String root, String[] names)
  • Method Details

    • isAbsolute

      public boolean isAbsolute()
      Returns whether or not this result is an absolute path.
    • isRoot

      public boolean isRoot()
      Returns whether or not this result represents a root path.
    • root

      public String root()
      Returns the parsed root element, or null if there was no root.
    • names

      public String[] names()
      Returns the parsed name elements.