Class PathType.ParseResult

  • Enclosing class:
    PathType

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

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<java.lang.String> names  
      private @Nullable java.lang.String root  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseResult​(@Nullable 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.
      @Nullable 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
    • Field Detail

      • root

        private final @Nullable java.lang.String root
      • names

        private final java.lang.Iterable<java.lang.String> names
    • 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

        public @Nullable 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.