public class PackageAnalyser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PackageAnalyser.Bundle
A dats structure to capture bundle details needed for our
processing.
|
static class |
PackageAnalyser.PackageCapability
Holds information about an exported package.
|
static class |
PackageAnalyser.SplitPackage
Holds information about a split-package.
|
static class |
PackageAnalyser.Wire
A wire represents a connection between an exporter bundle to an importer
bundle for a particular package.
|
| Modifier and Type | Field and Description |
|---|---|
Set<PackageAnalyser.Bundle> |
bundles |
| Constructor and Description |
|---|
PackageAnalyser(Repository moduleRepository) |
PackageAnalyser(Repository repo,
Logger logger) |
public Set<PackageAnalyser.Bundle> bundles
public PackageAnalyser(Repository moduleRepository)
public PackageAnalyser(Repository repo, Logger logger)
public void analyse(PackageAnalyser.Bundle bundle) throws IOException
bundle - to be analysedIOExceptionpublic Collection<PackageAnalyser.Wire> analyseWirings() throws IOException
IOExceptionpublic Collection<PackageAnalyser.SplitPackage> findDuplicatePackages()
this#analyseWirings()
The colection is already sorted.public Collection<PackageAnalyser.PackageCapability> findAllExportedPackages()
public Collection<String> findAllExportedPackageNames()
public Set<PackageAnalyser.Bundle> findAllBundles()
public Collection<PackageAnalyser.PackageCapability> findUnusedExports()
public Collection<PackageAnalyser.PackageCapability> findUnusedExports(PackageAnalyser.Bundle exporter)
exporter - public void generateWiringReport(Collection<PackageAnalyser.PackageCapability> exportedPkgs, Collection<PackageAnalyser.Wire> wires, PrintStream out)
public void generateBundleReport(PrintStream out)
Copyright © 2009–2017 Oracle Corporation. All rights reserved.