public class ClosureJavaScriptDependencyExtractor extends java.lang.Object
Constructor and Description |
---|
ClosureJavaScriptDependencyExtractor() |
Modifier and Type | Method and Description |
---|---|
ClosureDependencyResult |
getActualDependencies(java.util.List<ShallowEntity> entities,
java.util.List<IToken> tokens)
Collects the real dependencies of the given entities, which might not match
the ones declared with 'goog.require' in the file.
|
static java.util.List<java.lang.String> |
getDeclaredNamespaces(java.util.List<ShallowEntity> entities)
Returns the declared namespaces (i.e., JS 'class declarations') in the given
entities.
|
static java.util.List<java.lang.String> |
getOwnNamespaces(ShallowEntity entity) |
static SetMap<java.lang.String,IToken> |
getStatedDependencies(java.util.List<ShallowEntity> entities)
Returns the dependencies of the given entity that are delclared via
'goog.require').
|
public ClosureJavaScriptDependencyExtractor()
public ClosureDependencyResult getActualDependencies(java.util.List<ShallowEntity> entities, java.util.List<IToken> tokens)
public static SetMap<java.lang.String,IToken> getStatedDependencies(java.util.List<ShallowEntity> entities)
public static java.util.List<java.lang.String> getDeclaredNamespaces(java.util.List<ShallowEntity> entities)
public static java.util.List<java.lang.String> getOwnNamespaces(ShallowEntity entity)
for the child entities.