public class ModuleDependencyAnalyser extends Object
| Constructor and Description |
|---|
ModuleDependencyAnalyser(ModuleDefinition moduleDef,
Repository moduleRepository)
Create a new analyser.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
analyse()
Analyse dependency of a module.
|
void |
excludeClasses(Collection<String> classes) |
void |
excludePackages(Collection<String> packages) |
void |
excludePatterns(Collection<String> patterns) |
Map<String,Collection<String>> |
getResult() |
String |
getResultAsString() |
static void |
main(String[] args) |
void |
printResult(PrintStream out) |
public ModuleDependencyAnalyser(ModuleDefinition moduleDef, Repository moduleRepository) throws IOException
moduleDef - module whose dependency needs to be analysedmoduleRepository - repository used to satisfy dependenciesIOExceptionpublic boolean analyse()
throws IOException
IOException - if there is any failure in reading module informationpublic void excludePatterns(Collection<String> patterns)
public void excludePackages(Collection<String> packages)
public void excludeClasses(Collection<String> classes)
public Map<String,Collection<String>> getResult()
for
description of the return value.public String getResultAsString()
public void printResult(PrintStream out)
Copyright © 2009–2017 Oracle Corporation. All rights reserved.