Class PathType.ParseResult

  • Enclosing class:
    PathType

    public static final class PathType.ParseResult
    extends java.lang.Object
    Simple result of parsing a path.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseResult​(java.lang.String root, java.lang.Iterable<java.lang.String> names)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAbsolute()
      Returns whether or not this result is an absolute path.
      boolean isRoot()
      Returns whether or not this result represents a root path.
      java.lang.Iterable<java.lang.String> names()
      Returns the parsed name elements.
      java.lang.String root()
      Returns the parsed root element, or null if there was no root.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParseResult

        public ParseResult​(@Nullable
                           java.lang.String root,
                           java.lang.Iterable<java.lang.String> names)
    • Method Detail

      • 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

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

        public java.lang.Iterable<java.lang.String> names()
        Returns the parsed name elements.