Package com.google.common.jimfs
Class PathType.ParseResult
- java.lang.Object
-
- com.google.common.jimfs.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(@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.
-
-
-
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.
-
-