Class Import
java.lang.Object
com.google.javascript.jscomp.modules.Import
An
import
ed name in a module.
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns the name that was imported from the requested module.abstract Node
Returns the import node for source information.abstract String
Returns the local name the imported value is bound to.abstract @Nullable ModuleLoader.ModulePath
Returns the path of the containing module, if from an ES module.abstract String
Returns the module identifier of this import.abstract Node
nameNode()
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.
-