Class PortablePathText

java.lang.Object
org.ek9lang.core.PortablePathText
All Implemented Interfaces:
Function<Path,String>

public final class PortablePathText extends Object implements Function<Path,String>
THE text of a path with / between its names on every platform - hold one and use it; never path.toString() (the platform's separator, \ on Windows) nor a private .replace('\\', '/') for a path that is shown or compared as text.

A RELATIVE path that leaves the machine - a workspace-relative path in an MCP answer, a coverage key, a link in a generated page, a source's relative name carried in compiled output, a dev/ test on a relative path - must read the same on Windows as on macOS and Linux, or the same file is two strings and a key, a link or a test silently misses. An ABSOLUTE path stays native (Steve, 2026-11-08: paths are the platform's own); this is for the relative form only.

An empty path gives "".

  • Constructor Details

    • PortablePathText

      public PortablePathText()
  • Method Details