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() |
boolean |
equals(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.
|
int |
hashCode() |
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 com.google.common.collect.ImmutableList<ModuleMetadataMap.ModuleMetadata> |
nestedModules() |
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 Node |
rootNode()
AST node that represents the root of this module.
|
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()
@Nullable public abstract Node rootNode()
May be null if this is a synthetic piece of metadata - e.g. in a test, or something used as a fallback.
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()
This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset.
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> requiredGoogNamespaces()
This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset.
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> requiredTypes()
This is a multiset as it does not warn on duplicate namespaces, but will still encapsulate that information with this multiset.
public abstract com.google.common.collect.ImmutableMultiset<java.lang.String> es6ImportSpecifiers()
public abstract com.google.common.collect.ImmutableList<ModuleMetadataMap.ModuleMetadata> nestedModules()
@Nullable public abstract ModuleLoader.ModulePath path()
public static ModuleMetadataMap.ModuleMetadata.Builder builder()
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
Copyright © 2009-2019 Google. All Rights Reserved.