public final class SimpleDependencyInfo extends Object implements DependencyInfo
| Constructor and Description |
|---|
SimpleDependencyInfo(String srcPathRelativeToClosure,
String pathOfDefiningFile,
List<String> provides,
List<String> requires,
boolean isModule)
Constructs a DependencyInfo object with the given list of provides &
requires.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Gets the unique name / path of this file.
|
String |
getPathRelativeToClosureBase()
Gets the path of this file relative to Closure's base.js file.
|
Collection<String> |
getProvides()
Gets the symbols provided by this file.
|
Collection<String> |
getRequires()
Gets the symbols required by this file.
|
int |
hashCode() |
boolean |
isModule()
Whether the symbol is provided by a module
|
String |
toString() |
public SimpleDependencyInfo(String srcPathRelativeToClosure, String pathOfDefiningFile, List<String> provides, List<String> requires, boolean isModule)
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.public String getName()
DependencyInfogetName in interface DependencyInfopublic String getPathRelativeToClosureBase()
DependencyInfogetPathRelativeToClosureBase in interface DependencyInfopublic boolean isModule()
DependencyInfoisModule in interface DependencyInfopublic Collection<String> getProvides()
DependencyInfogetProvides in interface DependencyInfopublic Collection<String> getRequires()
DependencyInfogetRequires in interface DependencyInfoCopyright © 2009-2015 Google. All Rights Reserved.