Class Import
java.lang.Object
com.google.javascript.jscomp.modules.Import
An
imported name in a module.
-
Method Summary
Modifier and TypeMethodDescriptionabstract StringReturns the name that was imported from the requested module.abstract NodeReturns the import node for source information.abstract StringReturns the local name the imported value is bound to.abstract @Nullable ModuleLoader.ModulePathReturns the path of the containing module, if from an ES module.abstract StringReturns the module identifier of this import.abstract NodenameNode()Returns the name node for source information.
-
Method Details
-
moduleRequest
Returns the module identifier of this import. -
importName
Returns the name that was imported from the requested module.For
import *this will return "*". -
localName
Returns the local name the imported value is bound to. -
modulePath
Returns the path of the containing module, if from an ES module. -
importNode
Returns the import node for source information. -
nameNode
Returns the name node for source information.
-