Class ModuleMap
- java.lang.Object
-
- com.google.javascript.jscomp.modules.ModuleMap
-
public final class ModuleMap extends java.lang.Object
A 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 ModuleMap
emptyForTesting()
@Nullable Module
getClosureModule(java.lang.String namespace)
@Nullable Module
getModule(ModuleLoader.ModulePath path)
@Nullable Module
getModule(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
public @Nullable Module getModule(java.lang.String moduleName)
-
getModule
public @Nullable 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
public @Nullable Module getClosureModule(java.lang.String namespace)
-
emptyForTesting
public static ModuleMap emptyForTesting()
-
-