Class Export
java.lang.Object
com.google.javascript.jscomp.modules.Export
An
exported name in a module.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThelocalName()of anonymous ES module default exports, e.g.static final StringTheexportName()of goog.module default exports, e.g. -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable Stringabstract @Nullable StringReturns the name of this export or null if this is anexport * from.abstract @Nullable NodeNode that this export originates from.abstract @Nullable StringReturns the name imported from another module.abstract @Nullable StringReturns the local name of this export or null if none.abstract ModuleMetadataMap.ModuleMetadataThe module that contains this export.abstract @Nullable ModuleLoader.ModulePathReturns the path of the containing moduleabstract @Nullable StringReturns the module identifier of an export from or null if this is not anexport {} fromorexport * from.abstract booleanmutated()Whether or not this export is potentially mutated after module execution (i.e.abstract @Nullable NodenameNode()Node that this export originates from.
-
Field Details
-
DEFAULT_EXPORT_NAME
ThelocalName()of anonymous ES module default exports, e.g.export default 0.- See Also:
-
NAMESPACE
TheexportName()of goog.module default exports, e.g.exports = class {};, and the 'namespace' of an ES module consisting of all exported names.- See Also:
-
-
Method Details
-
exportName
Returns the name of this export or null if this is anexport * from. -
moduleRequest
Returns the module identifier of an export from or null if this is not anexport {} fromorexport * from. -
importName
Returns the name imported from another module. * if import all or null if not anexport {} from. -
localName
Returns the local name of this export or null if none. *default* if default. -
modulePath
Returns the path of the containing module -
exportNode
Node that this export originates from. Used for its source location.Null only if from non-ES module or from a missing ES module.
-
nameNode
Node that this export originates from. Used for its source location.Null only if from non-ES6 module or an export syntax that has no associated name, e.g.
export * from. -
moduleMetadata
The module that contains this export. -
closureNamespace
-
mutated
public abstract boolean mutated()Whether or not this export is potentially mutated after module execution (i.e. in a function scope).
-