Uses of Class
com.google.javascript.jscomp.JSModule
-
Packages that use JSModule Package Description com.google.javascript.jscomp Provides the core compiler and its public API. -
-
Uses of JSModule in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return JSModule Modifier and Type Method Description JSModuleJSModuleGraph. getDeepestCommonDependencyInclusive(JSModule m1, JSModule m2)Finds the deepest common dependency of two modules, including the modules themselves.JSModuleJSModuleGraph. getDeepestCommonDependencyInclusive(java.util.Collection<JSModule> modules)Returns the deepest common dependency of the given modules.JSModuleJSModuleGraph.ModuleDependenceException. getDependentModule()JSModuleCompilerInput. getModule()Returns the module to which the input belongs.JSModuleJSModuleGraph.ModuleDependenceException. getModule()JSModuleNodeTraversal. getModule()Gets the current input module.JSModuleJSModuleGraph. getSmallestCoveringSubtree(JSModule parentTree, java.util.BitSet dependentModules)Finds the module with the fewest transitive dependents on which all of the given modules depend and that is a subtree of the given parent module tree.Methods in com.google.javascript.jscomp that return types with arguments of type JSModule Modifier and Type Method Description static java.util.List<JSModule>AbstractCommandLineRunner. createJsModules(java.util.List<AbstractCommandLineRunner.JsModuleSpec> specs, java.util.List<SourceFile> inputs)Creates module objects from a list of js module specifications.java.util.Set<JSModule>JSModule. getAllDependencies()Returns the transitive closure of dependencies starting from the dependencies of this module.com.google.common.collect.ImmutableList<JSModule>JSModule. getDependencies()Gets the list of modules that this module depends on.java.lang.Iterable<JSModule>Compiler. getModules()Gets the JS source modules in dependency order.java.util.Set<JSModule>JSModule. getThisAndAllDependencies()Returns this module and all of its dependencies in one list.Methods in com.google.javascript.jscomp with parameters of type JSModule Modifier and Type Method Description voidJSModule. addDependency(JSModule dep)Adds a dependency on another module.booleanJSModuleGraph. dependsOn(JSModule src, JSModule m)Determines whether this module depends on a given module.JSModuleJSModuleGraph. getDeepestCommonDependencyInclusive(JSModule m1, JSModule m2)Finds the deepest common dependency of two modules, including the modules themselves.protected NodeCompiler. getNodeForCodeInsertion(JSModule module)JSModuleJSModuleGraph. getSmallestCoveringSubtree(JSModule parentTree, java.util.BitSet dependentModules)Finds the module with the fewest transitive dependents on which all of the given modules depend and that is a subtree of the given parent module tree.voidCompilerInput. setModule(JSModule module)Sets the module to which the input belongs.java.lang.StringCompiler. toSource(JSModule module)Converts the parse tree for a module back to JS code.java.lang.String[]Compiler. toSourceArray(JSModule module)Converts the parse tree for each input in a module back to JS code.Method parameters in com.google.javascript.jscomp with type arguments of type JSModule Modifier and Type Method Description JSModuleJSModuleGraph. getDeepestCommonDependencyInclusive(java.util.Collection<JSModule> modules)Returns the deepest common dependency of the given modules.static java.util.Map<java.lang.String,java.lang.String>AbstractCommandLineRunner. parseModuleWrappers(java.util.List<java.lang.String> specs, java.lang.Iterable<JSModule> chunks)Parses module wrapper specifications.Constructors in com.google.javascript.jscomp with parameters of type JSModule Constructor Description JSModuleGraph(JSModule[] modulesInDepOrder)Creates a module graph from a list of modules in dependency order.ModuleDependenceException(java.lang.String message, JSModule module, JSModule dependentModule)Constructor parameters in com.google.javascript.jscomp with type arguments of type JSModule Constructor Description JSModuleGraph(java.util.List<JSModule> modulesInDepOrder)Creates a module graph from a list of modules in dependency order.
-