public abstract class Export
extends java.lang.Object
exported name in a module.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_EXPORT_NAME
The
localName() of anonymous ES module default exports, e.g. |
static java.lang.String |
NAMESPACE
The
exportName() of goog.module default exports, e.g. |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
closureNamespace() |
abstract java.lang.String |
exportName()
Returns the name of this export or null if this is an
export * from. |
abstract Node |
exportNode()
Node that this export originates from.
|
abstract java.lang.String |
importName()
Returns the name imported from another module.
|
abstract java.lang.String |
localName()
Returns the local name of this export or null if none.
|
abstract ModuleMetadataMap.ModuleMetadata |
moduleMetadata()
The module that contains this export.
|
abstract ModuleLoader.ModulePath |
modulePath()
Returns the path of the containing module
|
abstract java.lang.String |
moduleRequest()
Returns the module identifier of an export from or null if this is not an
export {}
from or export * from. |
abstract boolean |
mutated()
Whether or not this export is potentially mutated after module execution (i.e.
|
abstract Node |
nameNode()
Node that this export originates from.
|
public static final java.lang.String DEFAULT_EXPORT_NAME
localName() of anonymous ES module default exports, e.g. export
default 0.public static final java.lang.String NAMESPACE
exportName() of goog.module default exports, e.g. exports = class
{};, and the 'namespace' of an ES module consisting of all exported names.@Nullable public abstract java.lang.String exportName()
export * from.@Nullable public abstract java.lang.String moduleRequest()
export {}
from or export * from.@Nullable public abstract java.lang.String importName()
export
{} from.@Nullable public abstract java.lang.String localName()
@Nullable public abstract ModuleLoader.ModulePath modulePath()
@Nullable public abstract Node exportNode()
Null only if from non-ES module or from a missing ES module.
@Nullable public abstract Node nameNode()
Null only if from non-ES6 module or an export syntax that has no associated name, e.g.
export * from.
public abstract ModuleMetadataMap.ModuleMetadata moduleMetadata()
@Nullable public abstract java.lang.String closureNamespace()
public abstract boolean mutated()
Copyright © 2009-2020 Google. All Rights Reserved.