Class Import

java.lang.Object
com.google.javascript.jscomp.modules.Import

public abstract class Import extends Object
An imported name in a module.

See the ImportEntry in the ECMAScript spec.

  • Method Details

    • moduleRequest

      public abstract String moduleRequest()
      Returns the module identifier of this import.
    • importName

      public abstract String importName()
      Returns the name that was imported from the requested module.

      For import * this will return "*".

    • localName

      public abstract 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.