Class ModuleMetadataMap.ModuleMetadata
- java.lang.Object
- 
- com.google.javascript.jscomp.modules.ModuleMetadataMap.ModuleMetadata
 
- 
- Enclosing class:
- ModuleMetadataMap
 
 public abstract static class ModuleMetadataMap.ModuleMetadata extends java.lang.ObjectStruct containing basic information about a module/script including its type and goog namespaces.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classModuleMetadataMap.ModuleMetadata.BuilderBuilder forModuleMetadataMap.ModuleMetadata.
 - 
Constructor SummaryConstructors Constructor Description ModuleMetadata()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ModuleMetadataMap.ModuleMetadata.Builderbuilder()abstract com.google.common.collect.ImmutableMultiset<java.lang.String>dynamicallyRequiredGoogNamespaces()Closure namespaces this file dynamically require, i.e., arguments to goog.requireDynamic() calls.booleanequals(java.lang.Object other)abstract com.google.common.collect.ImmutableMultiset<java.lang.String>es6ImportSpecifiers()Raw text of all ES6 import specifiers (includes "export from" as well).abstract com.google.common.collect.ImmutableMultiset<java.lang.String>googNamespaces()Closure namespaces that this file is associated with.inthashCode()booleanisCommonJs()booleanisEs6Module()booleanisGoogModule()booleanisGoogProvide()booleanisLegacyGoogModule()booleanisModule()Whether this is a module (with it's own local scope).booleanisNonLegacyGoogModule()booleanisNonProvideScript()abstract booleanisTestOnly()Whether goog.setTestOnly was called.abstract ModuleMetadataMap.ModuleTypemoduleType()abstract com.google.common.collect.ImmutableList<ModuleMetadataMap.ModuleMetadata>nestedModules()abstract @Nullable ModuleLoader.ModulePathpath()abstract @Nullable NoderootNode()AST node that represents the root of this module.abstract com.google.common.collect.ImmutableMultiset<java.lang.String>stronglyRequiredGoogNamespaces()Closure namespaces this file strongly requires, i.e., arguments to goog.require calls.abstract booleanusesClosure()Whether this file uses Closure Library at all.abstract com.google.common.collect.ImmutableMultiset<java.lang.String>weaklyRequiredGoogNamespaces()Closure namespaces this file weakly requires, i.e., arguments to goog.requireType calls.
 
- 
- 
- 
Method Detail- 
moduleTypepublic abstract ModuleMetadataMap.ModuleType moduleType() 
 - 
isEs6Modulepublic boolean isEs6Module() 
 - 
isGoogModulepublic boolean isGoogModule() 
 - 
isNonLegacyGoogModulepublic boolean isNonLegacyGoogModule() 
 - 
isLegacyGoogModulepublic boolean isLegacyGoogModule() 
 - 
isGoogProvidepublic boolean isGoogProvide() 
 - 
isCommonJspublic boolean isCommonJs() 
 - 
isNonProvideScriptpublic boolean isNonProvideScript() 
 - 
isModulepublic boolean isModule() Whether this is a module (with it's own local scope).
 - 
rootNodepublic abstract @Nullable Node rootNode() AST node that represents the root of this module.May be null if this is a synthetic piece of metadata - e.g. in a test, or something used as a fallback. 
 - 
usesClosurepublic abstract boolean usesClosure() Whether this file uses Closure Library at all. Note that a file could use Closure Library even without calling goog.provide/module/require - there are some primitives in base.js that can be used without being required like goog.isArray.If this is true this indicates the base.js is needed and is not part of this script - it is an EXTERNAL dependencym otherwise false. If this is also false if Closure Library is part of this script - e.g. a bundle with base.js. So something could be a "goog.provide'd file", but not use Closure if the bundle already contains Closure. 
 - 
isTestOnlypublic abstract boolean isTestOnly() Whether goog.setTestOnly was called.
 - 
googNamespacespublic abstract com.google.common.collect.ImmutableMultiset<java.lang.String> googNamespaces() Closure namespaces that this file is associated with. Created by goog.provide, goog.module, and goog.declareModuleId.This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset. 
 - 
stronglyRequiredGoogNamespacespublic abstract com.google.common.collect.ImmutableMultiset<java.lang.String> stronglyRequiredGoogNamespaces() Closure namespaces this file strongly requires, i.e., arguments to goog.require calls.This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset. 
 - 
dynamicallyRequiredGoogNamespacespublic abstract com.google.common.collect.ImmutableMultiset<java.lang.String> dynamicallyRequiredGoogNamespaces() Closure namespaces this file dynamically require, i.e., arguments to goog.requireDynamic() calls.This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset. 
 - 
weaklyRequiredGoogNamespacespublic abstract com.google.common.collect.ImmutableMultiset<java.lang.String> weaklyRequiredGoogNamespaces() Closure namespaces this file weakly requires, i.e., arguments to goog.requireType calls.This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset. 
 - 
es6ImportSpecifierspublic abstract com.google.common.collect.ImmutableMultiset<java.lang.String> es6ImportSpecifiers() Raw text of all ES6 import specifiers (includes "export from" as well).
 - 
nestedModulespublic abstract com.google.common.collect.ImmutableList<ModuleMetadataMap.ModuleMetadata> nestedModules() 
 - 
pathpublic abstract @Nullable ModuleLoader.ModulePath path() 
 - 
builderpublic static ModuleMetadataMap.ModuleMetadata.Builder builder() 
 - 
equalspublic final boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic final int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-