public class MultiClassDependencyAnalyzer
extends java.lang.Object
DependencyAnalyzer
that is detecting only the dependencies
of a single class.Constructor and Description |
---|
MultiClassDependencyAnalyzer()
Creates a new instance that will not do any monitoring callback invocations
and does not exclude any classes from collecting.
|
MultiClassDependencyAnalyzer(ClassInformationFilter classIgnoreFilter)
Creates a new instance that will not do any monitoring callback invocations
during analysis.
|
MultiClassDependencyAnalyzer(IProgressMonitor monitor)
Creates e new instance with a monitor to be invoked regularly
during analysis.
|
MultiClassDependencyAnalyzer(IProgressMonitor monitor,
ClassInformationFilter classIgnoreFilter)
Creates e new instance with a monitor to be invoked regularly
during analysis.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<DependencyClassNode> |
analyze(ClassInformation... classInfos)
Collects all classes the given classes depend on (recursively) and
returns the result as list of DependencyClassNode without any duplicates.
|
java.util.List<DependencyClassNode> |
analyze(java.util.Collection<ClassInformation> classInfos)
Collects all classes the given classes depend on (recursively) and
returns the result as list of DependencyClassNode without any duplicates.
|
java.util.List<DependencyClassNode> |
getCollectedClassNodes()
Returns all class nodes that have been found so far.
|
protected DependencyAnalyzer |
getDependencyAnalyzer() |
int |
numberOfFoundClassNodes()
Returns how many class nodes have been found so far.
|
public MultiClassDependencyAnalyzer()
public MultiClassDependencyAnalyzer(IProgressMonitor monitor)
monitor
- The monitor to be invoked during processing (may be null).public MultiClassDependencyAnalyzer(ClassInformationFilter classIgnoreFilter)
classIgnoreFilter
- A filter that defines which classes must not
be added to the resulting collection (may be null).public MultiClassDependencyAnalyzer(IProgressMonitor monitor, ClassInformationFilter classIgnoreFilter)
monitor
- The monitor to be invoked during processing (may be null).classIgnoreFilter
- A filter that defines which classes must not
be added to the resulting collection (may be null).public java.util.List<DependencyClassNode> analyze(java.util.Collection<ClassInformation> classInfos)
This method can be called multiple times. Each invocation will add only newly detected dependencies to the result, but the returned result contains always the detected dependencies of all invocations.
classInfos
- The classes to be analyzed (must not be null).public java.util.List<DependencyClassNode> analyze(ClassInformation... classInfos)
This method can be called multiple times. Each invocation will add only newly detected dependencies to the result, but the returned result contains always the detected dependencies of all invocations.
classInfos
- The classes to be analyzed (must not be null).public java.util.List<DependencyClassNode> getCollectedClassNodes()
analyze(ClassInformation...)
or analyze(Collection)
.public int numberOfFoundClassNodes()
protected DependencyAnalyzer getDependencyAnalyzer()