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