public final class SimpleDependencyInfo extends Object implements DependencyInfo
DependencyInfo.Base, DependencyInfo.Util| Modifier and Type | Field and Description |
|---|---|
static SimpleDependencyInfo |
EMPTY |
| Constructor and Description |
|---|
SimpleDependencyInfo(String srcPathRelativeToClosure,
String pathOfDefiningFile,
Collection<String> provides,
Collection<String> requires,
Map<String,String> loadFlags)
Constructs a DependencyInfo object with the given list of provides and
requires.
|
SimpleDependencyInfo(String srcPathRelativeToClosure,
String pathOfDefiningFile,
List<String> provides,
List<String> requires,
boolean isModule) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.common.collect.ImmutableMap<String,String> |
getLoadFlags()
Gets the loading information for this file.
|
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.
|
com.google.common.collect.ImmutableList<String> |
getProvides()
Gets the symbols provided by this file.
|
com.google.common.collect.ImmutableList<String> |
getRequires()
Gets the symbols required by this file.
|
int |
hashCode() |
boolean |
isModule()
Whether the symbol is provided by a module
|
String |
toString() |
public static final SimpleDependencyInfo EMPTY
public SimpleDependencyInfo(String srcPathRelativeToClosure, String pathOfDefiningFile, List<String> provides, List<String> requires, boolean isModule)
public SimpleDependencyInfo(String srcPathRelativeToClosure, String pathOfDefiningFile, Collection<String> provides, Collection<String> requires, Map<String,String> loadFlags)
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.loadFlags - Map of file-loading information.public String getName()
DependencyInfogetName in interface DependencyInfopublic String getPathRelativeToClosureBase()
DependencyInfogetPathRelativeToClosureBase in interface DependencyInfopublic com.google.common.collect.ImmutableMap<String,String> getLoadFlags()
DependencyInfogetLoadFlags in interface DependencyInfopublic boolean isModule()
DependencyInfoisModule in interface DependencyInfopublic com.google.common.collect.ImmutableList<String> getProvides()
DependencyInfogetProvides in interface DependencyInfopublic com.google.common.collect.ImmutableList<String> getRequires()
DependencyInfogetRequires in interface DependencyInfoCopyright © 2009-2016 Google. All Rights Reserved.