Class ResolvedModuleKeys

java.lang.Object
org.pkl.core.module.ResolvedModuleKeys

public final class ResolvedModuleKeys extends Object
Utilities for obtaining and using resolved module keys.
  • Method Details

    • file

      public static ResolvedModuleKey file(ModuleKey original, URI uri, Path path)
      Creates a resolved module key backed by the given file path. The resulting module will be loaded from that file path and cached using the given URI as cache key.
    • url

      public static ResolvedModuleKey url(ModuleKey original, URI uri, URL url)
      Creates a resolved module key backed by the given URL. The resulting module will be loaded from that URL and cached using the given URI as cache key.
    • virtual

      public static ResolvedModuleKey virtual(ModuleKey original, URI uri, String sourceText, boolean cached)
      Creates a resolved module key backed by the given source code. If cached is true, the resulting module will be cached using the given URI as cache key.
    • delegated

      public static ResolvedModuleKey delegated(ResolvedModuleKey delegate, ModuleKey original)
      Creates a resolved module key that behaves like delegate, except with original as its original module key.