Class DependencyInfo.Require
java.lang.Object
com.google.javascript.jscomp.deps.DependencyInfo.Require
- Enclosing interface:
DependencyInfo
A dependency link between two files, e.g. goog.require('namespace'), import 'file';
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList
<String> asSymbolList
(Iterable<DependencyInfo.Require> requires) static DependencyInfo.Require
static DependencyInfo.Require
compilerModule
(String symbol) static DependencyInfo.Require
abstract String
abstract String
abstract DependencyInfo.Require.Type
getType()
static DependencyInfo.Require
googRequireSymbol
(String symbol) static DependencyInfo.Require
parsedFromDeps
(String symbol) protected abstract com.google.javascript.jscomp.deps.DependencyInfo.Require.Builder
withSymbol
(String symbol)
-
Field Details
-
BASE
-
-
Constructor Details
-
Require
public Require()
-
-
Method Details
-
asSymbolList
public static com.google.common.collect.ImmutableList<String> asSymbolList(Iterable<DependencyInfo.Require> requires) -
googRequireSymbol
-
es6Import
-
commonJs
-
compilerModule
-
parsedFromDeps
-
toBuilder
protected abstract com.google.javascript.jscomp.deps.DependencyInfo.Require.Builder toBuilder() -
withSymbol
-
getSymbol
- Returns:
- symbol the symbol provided by another
DependencyInfo
'sDependencyInfo.getProvides()
-
getRawText
- Returns:
- the raw text of the import string as it appears in the file. Used mostly for error reporting.
-
getType
-