Class Import

    • 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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

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