Class Export

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract @Nullable java.lang.String closureNamespace()  
      abstract @Nullable java.lang.String exportName()
      Returns the name of this export or null if this is an export * from.
      abstract @Nullable Node exportNode()
      Node that this export originates from.
      abstract @Nullable java.lang.String importName()
      Returns the name imported from another module.
      abstract @Nullable java.lang.String localName()
      Returns the local name of this export or null if none.
      abstract ModuleMetadataMap.ModuleMetadata moduleMetadata()
      The module that contains this export.
      abstract @Nullable ModuleLoader.ModulePath modulePath()
      Returns the path of the containing module
      abstract @Nullable java.lang.String moduleRequest()
      Returns the module identifier of an export from or null if this is not an export {} from or export * from.
      abstract boolean mutated()
      Whether or not this export is potentially mutated after module execution (i.e.
      abstract @Nullable Node nameNode()
      Node that this export originates from.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_EXPORT_NAME

        public static final java.lang.String DEFAULT_EXPORT_NAME
        The localName() of anonymous ES module default exports, e.g. export default 0.
        See Also:
        Constant Field Values
      • NAMESPACE

        public static final java.lang.String NAMESPACE
        The exportName() of goog.module default exports, e.g. exports = class {};, and the 'namespace' of an ES module consisting of all exported names.
        See Also:
        Constant Field Values
    • Method Detail

      • exportName

        public abstract @Nullable java.lang.String exportName()
        Returns the name of this export or null if this is an export * from.
      • moduleRequest

        public abstract @Nullable java.lang.String moduleRequest()
        Returns the module identifier of an export from or null if this is not an export {} from or export * from.
      • importName

        public abstract @Nullable java.lang.String importName()
        Returns the name imported from another module. * if import all or null if not an export {} from.
      • localName

        public abstract @Nullable java.lang.String localName()
        Returns the local name of this export or null if none. *default* if default.
      • modulePath

        public abstract @Nullable ModuleLoader.ModulePath modulePath()
        Returns the path of the containing module
      • exportNode

        public abstract @Nullable Node exportNode()
        Node that this export originates from. Used for its source location.

        Null only if from non-ES module or from a missing ES module.

      • nameNode

        public abstract @Nullable Node nameNode()
        Node that this export originates from. Used for its source location.

        Null only if from non-ES6 module or an export syntax that has no associated name, e.g. export * from.

      • closureNamespace

        public abstract @Nullable java.lang.String closureNamespace()
      • mutated

        public abstract boolean mutated()
        Whether or not this export is potentially mutated after module execution (i.e. in a function scope).