|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.javascript.jscomp.deps.DepsGenerator
public class DepsGenerator
Generates deps.js files by scanning JavaScript files for calls to goog.provide(), goog.require() and goog.addDependency().
Nested Class Summary | |
---|---|
static class |
DepsGenerator.InclusionStrategy
|
Constructor Summary | |
---|---|
DepsGenerator(Collection<SourceFile> deps,
Collection<SourceFile> srcs,
DepsGenerator.InclusionStrategy mergeStrategy,
String closurePathAbs,
ErrorManager errorManager)
Creates a new DepsGenerator. |
Method Summary | |
---|---|
protected void |
cleanUpDuplicatedFiles(Map<String,DependencyInfo> depsFiles,
Map<String,DependencyInfo> jsFiles)
Removes duplicated depsInfo from jsFiles if this info already present in some of the parsed deps.js |
String |
computeDependencyCalls()
Performs the parsing inputs and writing of outputs. |
protected DepsFileParser |
createDepsFileParser()
|
protected String |
formatPathToDepsFile(String path)
Format the deps file path so that it can be included in the output file. |
protected boolean |
shouldSkipDepsFile(SourceFile file)
Returns whether we should ignore dependency info in the given deps file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DepsGenerator(Collection<SourceFile> deps, Collection<SourceFile> srcs, DepsGenerator.InclusionStrategy mergeStrategy, String closurePathAbs, ErrorManager errorManager)
Method Detail |
---|
public String computeDependencyCalls() throws IOException
IOException
- Occurs upon an IO error.protected void cleanUpDuplicatedFiles(Map<String,DependencyInfo> depsFiles, Map<String,DependencyInfo> jsFiles)
depsFiles
- DepsInfo from deps.js dependenciesjsFiles
- DepsInfo from some of jsSourcesprotected DepsFileParser createDepsFileParser()
protected boolean shouldSkipDepsFile(SourceFile file)
protected String formatPathToDepsFile(String path)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |