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:DependencyInfo
Gets the unique name / path of this file.- Specified by:
getName
in interfaceDependencyInfo
-
getPathRelativeToClosureBase
Description copied from interface:DependencyInfo
Gets the path of this file relative to Closure's base.js file.- Specified by:
getPathRelativeToClosureBase
in interfaceDependencyInfo
-
getProvides
Description copied from interface:DependencyInfo
Gets the symbols provided by this file.- Specified by:
getProvides
in interfaceDependencyInfo
-
getRequires
Description copied from interface:DependencyInfo
Gets the symbols required by this file.- Specified by:
getRequires
in interfaceDependencyInfo
-
equals
-
toString
-