Class ModuleMap
- java.lang.Object
-
- com.google.javascript.jscomp.modules.ModuleMap
-
public final class ModuleMap extends java.lang.ObjectA map containing information about all modules in the compilation.This is currently used for ES modules and other types of module are not processed in detail.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModuleMapemptyForTesting()ModulegetClosureModule(java.lang.String namespace)ModulegetModule(ModuleLoader.ModulePath path)ModulegetModule(java.lang.String moduleName)com.google.common.collect.ImmutableMap<java.lang.String,Module>getModulesByClosureNamespace()com.google.common.collect.ImmutableMap<java.lang.String,Module>getModulesByPath()
-
-
-
Method Detail
-
getModule
@Nullable public Module getModule(java.lang.String moduleName)
-
getModule
@Nullable public Module getModule(ModuleLoader.ModulePath path)
-
getModulesByPath
public com.google.common.collect.ImmutableMap<java.lang.String,Module> getModulesByPath()
-
getModulesByClosureNamespace
public com.google.common.collect.ImmutableMap<java.lang.String,Module> getModulesByClosureNamespace()
-
getClosureModule
@Nullable public Module getClosureModule(java.lang.String namespace)
-
emptyForTesting
public static ModuleMap emptyForTesting()
-
-