public class SimpleDependencyInfo extends java.lang.Object implements DependencyInfo
Constructor and Description |
---|
SimpleDependencyInfo(java.lang.String srcPathRelativeToClosure,
java.lang.String pathOfDefiningFile,
java.util.List<java.lang.String> provides,
java.util.List<java.lang.String> requires)
Constructs a DependencyInfo object with the given list of provides &
requires.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Gets the unique name / path of this file.
|
java.lang.String |
getPathRelativeToClosureBase()
Gets the path of this file relative to Closure's base.js file.
|
java.util.Collection<java.lang.String> |
getProvides()
Gets the symbols provided by this file.
|
java.util.Collection<java.lang.String> |
getRequires()
Gets the symbols required by this file.
|
java.lang.String |
toString() |
public SimpleDependencyInfo(java.lang.String srcPathRelativeToClosure, java.lang.String pathOfDefiningFile, java.util.List<java.lang.String> provides, java.util.List<java.lang.String> requires)
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 java.lang.String getName()
DependencyInfo
getName
in interface DependencyInfo
public java.lang.String getPathRelativeToClosureBase()
DependencyInfo
getPathRelativeToClosureBase
in interface DependencyInfo
public java.util.Collection<java.lang.String> getProvides()
DependencyInfo
getProvides
in interface DependencyInfo
public java.util.Collection<java.lang.String> getRequires()
DependencyInfo
getRequires
in interface DependencyInfo
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object