PathSegment
Single segment in a Path.
Each subclass represents a different type of segment that can appear in a path, and links to the high-level factory to obtain an instance of this path.
The high-level operators are only available in correct contexts to disambiguate multiple usages of the same operator. Subclasses of this type do not protect against these usages.
Inheritors
Types
Path segment for the "all positional" operator (.$[].).
Path segment representing the name of a field.
Path segment for the "filtered positional" operator (.$[<filterName>]).
Path segment representing an indexed element in an array.
Path segment for the "positional" operator (.$.).
Functions
Returns the string representation of this PathSegment. To obtain the representation of an entire Path, see Path.toString.