AbsolutePath
Representation of an absolute path as a subtype of Path and as a list of absolute path fragments. Absolute paths are always "resolved" (i.e. they contain no unnecessary fragments such as current path fragments or consecutive recursive wildcard fragments).
Absolute paths represent locations of data from a root location: e.g. the location of a value within a value where the outer value is seen as the "root" value.
Unlike regular paths, the root fragment is always implicit in absolute paths and is not visible in the list of fragments.
Constructors
Creates an absolute path from a list of fragments.
Creates an absolute path from a path. The path will be resolved against the root path.
Creates an absolute path from a string representation of a path. The string will first be converted into a path and then resolved against the root path.
Properties
Functions
Returns whether this path contains path. Note that path will be converted to an absolute path when it isn't one.
Utility function which converts a path where table rows are indexed by their id into a path where said rows are indexed by their index in the corresponding table within the provided form value formValue (with schema formSchema).
Utility function which converts a path where table rows are indexed by their index into a path where said rows are indexed by their id in the corresponding table within the provided form value formValue (with schema formSchema).
Returns the fragment of this path at the provided index.
Returns the fragment of this path at the provided index.
Returns whether this path has at least one wildcard (either recursive or not).
Returns whether this path has at least one recursive wildcard.
Returns whether this path has at least one non-recursive wildcard.
Returns an iterator over the path's fragments.
Returns the path resulting from joining paths together with this path.
Returns whether this path matches with path. Note that path will be converted to an absolute path when it isn't one.
Returns an absolute path representing the parent of this path. Equivalent to resolve("..").
Returns a relative path representing this path, but relative to path. Note that path will be converted to an absolute path when it isn't one.
Returns the absolute path resulting from resolving a list of paths against this path.
Returns the result of resolving this path. Resolving the path removes unnecessary fragments such as the current path fragment.
Converts the receiver path into an absolute path, if it wasn't one already.