Class Import
- java.lang.Object
-
- com.google.javascript.jscomp.modules.Import
-
public abstract class Import extends java.lang.Object
Animport
ed name in a module.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
importName()
Returns the name that was imported from the requested module.abstract Node
importNode()
Returns the import node for source information.abstract java.lang.String
localName()
Returns the local name the imported value is bound to.abstract @Nullable ModuleLoader.ModulePath
modulePath()
Returns the path of the containing module, if from an ES module.abstract java.lang.String
moduleRequest()
Returns the module identifier of this import.abstract Node
nameNode()
Returns the name node for source information.
-
-
-
Method Detail
-
moduleRequest
public abstract java.lang.String moduleRequest()
Returns the module identifier of this import.
-
importName
public abstract java.lang.String importName()
Returns the name that was imported from the requested module.For
import *
this will return "*".
-
localName
public abstract java.lang.String localName()
Returns the local name the imported value is bound to.
-
modulePath
public abstract @Nullable ModuleLoader.ModulePath modulePath()
Returns the path of the containing module, if from an ES module.
-
importNode
public abstract Node importNode()
Returns the import node for source information.
-
nameNode
public abstract Node nameNode()
Returns the name node for source information.
-
-