public final class DefaultDependencyResolver extends Object implements DependencyResolver
getDependencies(String)), or a list of symbols
getDependencies(Collection).| Constructor and Description |
|---|
DefaultDependencyResolver(List<DependencyFile> depsFiles,
boolean strictRequires)
Creates a new dependency resolver.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDependencies(Collection<String> symbols)
Gets a list of dependencies for the provided list of symbols.
|
List<String> |
getDependencies(Collection<String> symbols,
Set<String> seen) |
List<String> |
getDependencies(String code)
Gets a list of dependencies for the provided code.
|
List<String> |
getDependencies(String code,
Set<String> seen,
boolean addClosureBaseFile) |
public DefaultDependencyResolver(List<DependencyFile> depsFiles, boolean strictRequires)
depsFiles - List of deps file.strictRequires - Determines if the resolver will through an exception
on a missing dependency.public List<String> getDependencies(String code) throws ServiceException
getDependencies in interface DependencyResolverServiceExceptionpublic List<String> getDependencies(Collection<String> symbols) throws ServiceException
getDependencies in interface DependencyResolverServiceExceptionpublic List<String> getDependencies(String code, Set<String> seen, boolean addClosureBaseFile) throws ServiceException
getDependencies in interface DependencyResolvercode - The raw code to be parsed for requires.seen - The set of already seen symbols.addClosureBaseFile - Indicates whether the closure base file should be
added to the dependency list.ServiceExceptionpublic List<String> getDependencies(Collection<String> symbols, Set<String> seen) throws ServiceException
getDependencies in interface DependencyResolversymbols - A list of required symbols.seen - The set of already seen symbols.ServiceExceptionCopyright © 2009-2015 Google. All Rights Reserved.