Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.bundle | |
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
Modifier and Type | Class and Description |
---|---|
class |
CompilerInput
A class for the internal representation of an input to the compiler.
|
class |
JSModule
A JavaScript module has a unique name, consists of a list of compiler inputs, and can depend on
other modules.
|
class |
LazyParsedDependencyInfo
A DependencyInfo class that determines load flags by parsing the AST just-in-time.
|
Constructor and Description |
---|
LazyParsedDependencyInfo(DependencyInfo delegate,
JsAst ast,
AbstractCompiler compiler) |
Modifier and Type | Method and Description |
---|---|
Source.Builder |
Source.Builder.setDependencyInfo(DependencyInfo info) |
Modifier and Type | Class and Description |
---|---|
class |
Es6SortedDependencies<INPUT extends DependencyInfo>
A sorted list of inputs following the ES6 module ordering spec.
|
interface |
SortedDependencies<INPUT extends DependencyInfo>
A sorted list of inputs with dependency information.
|
Modifier and Type | Class and Description |
---|---|
static class |
DependencyInfo.Base
Abstract base implementation that defines derived accessors such
as
DependencyInfo.Base.isModule() . |
class |
SimpleDependencyInfo
A class to hold JS dependency information for a single .js file.
|
Modifier and Type | Method and Description |
---|---|
DependencyInfo |
DependencyFile.getDependencyInfo(java.lang.String symbol)
Gets the dependency info for the provided symbol, if contained in this
dependency file.
|
DependencyInfo |
JsFileParser.parseFile(java.lang.String filePath,
java.lang.String closureRelativePath,
java.lang.String fileContents)
Parses the given file and returns the dependency information that it
contained.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DependencyInfo> |
DepsFileParser.parseFile(java.lang.String filePath)
Parses the given file and returns a list of dependency information that it
contained.
|
java.util.List<DependencyInfo> |
DepsFileParser.parseFile(java.lang.String filePath,
java.lang.String fileContents)
Parses the given file and returns a list of dependency information that it
contained.
|
java.util.List<DependencyInfo> |
DepsFileParser.parseFileReader(java.lang.String filePath,
java.io.Reader reader)
Parses the file from the given reader and returns a list of
dependency information that it contained.
|
Modifier and Type | Method and Description |
---|---|
static void |
ClosureBundler.appendInput(java.lang.Appendable out,
DependencyInfo info,
java.lang.String contents)
Append the contents of the string to the supplied appendable.
|
void |
ClosureBundler.appendTo(java.lang.Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content)
Append the contents of the CharSource to the supplied appendable.
|
void |
ClosureBundler.appendTo(java.lang.Appendable out,
DependencyInfo info,
java.io.File content,
java.nio.charset.Charset contentCharset)
Append the contents of the file to the supplied appendable.
|
void |
ClosureBundler.appendTo(java.lang.Appendable out,
DependencyInfo info,
java.lang.String content)
Append the contents of the string to the supplied appendable.
|
static SimpleDependencyInfo.Builder |
SimpleDependencyInfo.Builder.from(DependencyInfo copy) |
static void |
DependencyInfo.Util.writeAddDependency(java.lang.Appendable out,
DependencyInfo info)
Prints a goog.addDependency call for a single DependencyInfo.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DepsGenerator.cleanUpDuplicatedFiles(java.util.Map<java.lang.String,DependencyInfo> depsFiles,
java.util.Map<java.lang.String,DependencyInfo> jsFiles)
Removes duplicated depsInfo from jsFiles if this info already present in
some of the parsed deps.js
|
protected void |
DepsGenerator.cleanUpDuplicatedFiles(java.util.Map<java.lang.String,DependencyInfo> depsFiles,
java.util.Map<java.lang.String,DependencyInfo> jsFiles)
Removes duplicated depsInfo from jsFiles if this info already present in
some of the parsed deps.js
|
Constructor and Description |
---|
ModuleLoader(ErrorHandler errorHandler,
java.lang.Iterable<java.lang.String> moduleRoots,
java.lang.Iterable<? extends DependencyInfo> inputs,
ModuleLoader.ModuleResolverFactory factory) |
ModuleLoader(ErrorHandler errorHandler,
java.lang.Iterable<java.lang.String> moduleRoots,
java.lang.Iterable<? extends DependencyInfo> inputs,
ModuleLoader.ModuleResolverFactory factory,
ModuleLoader.PathResolver pathResolver) |
ModuleLoader(ErrorHandler errorHandler,
java.lang.Iterable<java.lang.String> moduleRoots,
java.lang.Iterable<? extends DependencyInfo> inputs,
ModuleLoader.ModuleResolverFactory factory,
ModuleLoader.PathResolver pathResolver,
ModuleLoader.PathEscaper pathEscaper)
Creates an instance of the module loader which can be used to locate ES6 and CommonJS modules.
|
Copyright © 2009-2019 Google. All Rights Reserved.