Class SimpleDependencyInfo
java.lang.Object
com.google.javascript.jscomp.deps.SimpleDependencyInfo
- All Implemented Interfaces:
DependencyInfo
A class to hold JS dependency information for a single .js file.
-
Constructor Details
-
SimpleDependencyInfo
public SimpleDependencyInfo(String srcPathRelativeToClosure, String pathOfDefiningFile, List<String> provides, List<String> requires) Constructs a DependencyInfo object with the given list of provides & requires. This does *not* copy the given lists, but uses them directly.- Parameters:
srcPathRelativeToClosure- The closure-relative path of the file associated with this DependencyInfo.pathOfDefiningFile- The path to the file from which this dependency information was extracted.provides- List of provided symbols.requires- List of required symbols.
-
-
Method Details
-
getName
Description copied from interface:DependencyInfoGets the unique name / path of this file.- Specified by:
getNamein interfaceDependencyInfo
-
getPathRelativeToClosureBase
Description copied from interface:DependencyInfoGets the path of this file relative to Closure's base.js file.- Specified by:
getPathRelativeToClosureBasein interfaceDependencyInfo
-
getProvides
Description copied from interface:DependencyInfoGets the symbols provided by this file.- Specified by:
getProvidesin interfaceDependencyInfo
-
getRequires
Description copied from interface:DependencyInfoGets the symbols required by this file.- Specified by:
getRequiresin interfaceDependencyInfo
-
equals
-
toString
-