Class ResolvedModuleKeys


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ResolvedModuleKey file​(ModuleKey original, java.net.URI uri, java.nio.file.Path path)
      Creates a resolved module key backed by the given file path.
      static ResolvedModuleKey url​(ModuleKey original, java.net.URI uri, java.net.URL url)
      Creates a resolved module key backed by the given URL.
      static ResolvedModuleKey virtual​(ModuleKey original, java.net.URI uri, java.lang.String sourceText, boolean cached)
      Creates a resolved module key backed by the given source code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • file

        public static ResolvedModuleKey file​(ModuleKey original,
                                             java.net.URI uri,
                                             java.nio.file.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,
                                            java.net.URI uri,
                                            java.net.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,
                                                java.net.URI uri,
                                                java.lang.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.