Class DependencyInfo.Require

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing interface:
    DependencyInfo

    @Immutable
    public abstract static class DependencyInfo.Require
    extends java.lang.Object
    implements java.io.Serializable
    A dependency link between two files, e.g. goog.require('namespace'), import 'file';
    See Also:
    Serialized Form
    • Constructor Detail

      • Require

        public Require()
    • Method Detail

      • asSymbolList

        public static com.google.common.collect.ImmutableList<java.lang.String> asSymbolList​(java.lang.Iterable<DependencyInfo.Require> requires)
      • es6Import

        public static DependencyInfo.Require es6Import​(java.lang.String symbol,
                                                       java.lang.String rawPath)
      • commonJs

        public static DependencyInfo.Require commonJs​(java.lang.String symbol,
                                                      java.lang.String rawPath)
      • toBuilder

        protected abstract com.google.javascript.jscomp.deps.DependencyInfo.Require.Builder toBuilder()
      • getRawText

        public abstract java.lang.String getRawText()
        Returns:
        the raw text of the import string as it appears in the file. Used mostly for error reporting.