public abstract static class ModuleMetadataMap.ModuleMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModuleMetadataMap.ModuleMetadata.Builder
Builder for
ModuleMetadataMap.ModuleMetadata . |
Constructor and Description |
---|
ModuleMetadata() |
Modifier and Type | Method and Description |
---|---|
static ModuleMetadataMap.ModuleMetadata.Builder |
builder() |
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.
|
boolean |
isCommonJs() |
boolean |
isEs6Module() |
boolean |
isGoogModule() |
boolean |
isGoogProvide() |
boolean |
isLegacyGoogModule() |
boolean |
isNonLegacyGoogModule() |
boolean |
isScript() |
abstract boolean |
isTestOnly()
Whether goog.setTestOnly was called.
|
abstract ModuleMetadataMap.ModuleType |
moduleType() |
abstract ModuleLoader.ModulePath |
path() |
abstract com.google.common.collect.ImmutableMultiset<java.lang.String> |
requiredGoogNamespaces()
Closure namespaces this file requires.
|
abstract com.google.common.collect.ImmutableMultiset<java.lang.String> |
requiredTypes()
Closure namespaces this file has weak dependencies on.
|
abstract boolean |
usesClosure()
Whether this file uses Closure Library at all.
|
public abstract ModuleMetadataMap.ModuleType moduleType()
public boolean isEs6Module()
public boolean isGoogModule()
public boolean isNonLegacyGoogModule()
public boolean isLegacyGoogModule()
public boolean isGoogProvide()
public boolean isCommonJs()
public boolean isScript()
public abstract boolean usesClosure()
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.
public abstract boolean isTestOnly()
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> googNamespaces()
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> requiredGoogNamespaces()
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> requiredTypes()
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> es6ImportSpecifiers()
@Nullable public abstract ModuleLoader.ModulePath path()
public static ModuleMetadataMap.ModuleMetadata.Builder builder()
Copyright © 2009-2018 Google. All Rights Reserved.