org.pf.tools.cda.core.dependency.analyzer
Class AClassDependencyDetector<TResultData>

java.lang.Object
  extended by org.pf.tools.cda.core.dependency.analyzer.AnalyzableElementDependantsDetector<ClassInformation>
      extended by org.pf.tools.cda.core.dependency.analyzer.AClassDependencyDetector<TResultData>
All Implemented Interfaces:
org.pf.bif.filter.IObjectFilter, IAnalyzableElementProcessor<ClassInformation>, IClassInformationProcessor<TResultData>, IMutableAnalyzableElementProcessor<ClassInformation>, IMutableClassInformationProcessor<TResultData>
Direct Known Subclasses:
ClassDependantsDetector, InterfaceImplementorsDetector

public abstract class AClassDependencyDetector<TResultData>
extends AnalyzableElementDependantsDetector<ClassInformation>
implements IMutableClassInformationProcessor<TResultData>

A monitored dependency detector for classes.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
AClassDependencyDetector(IProgressMonitor progressMonitor, ClassInformation classInfo)
          Initialize the new instance with a progress monitor and a class.
 
Method Summary
 TResultData getResultData()
          Returns any data that has been produced during the processing.
 boolean matches(java.lang.Object object)
          Returns false if the given object is no ClassInformation, otherwise it calls method matches(ClassInformation).
 boolean process(ClassInformation classInfo)
          Process the given class info.
 
Methods inherited from class org.pf.tools.cda.core.dependency.analyzer.AnalyzableElementDependantsDetector
getAnalyzedElement, getExcludedElements, matches, setAnalyzedElement, setExcludedElements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pf.tools.cda.base.model.processing.IMutableAnalyzableElementProcessor
setAnalyzedElement, setExcludedElements
 
Methods inherited from interface org.pf.tools.cda.base.model.processing.IAnalyzableElementProcessor
matches
 

Constructor Detail

AClassDependencyDetector

public AClassDependencyDetector(IProgressMonitor progressMonitor,
                                ClassInformation classInfo)
Initialize the new instance with a progress monitor and a class.

Method Detail

process

public boolean process(ClassInformation classInfo)
Process the given class info. Returns true if processing must continue.

Specified by:
process in interface IAnalyzableElementProcessor<ClassInformation>
Overrides:
process in class AnalyzableElementDependantsDetector<ClassInformation>
Parameters:
classInfo - The element object to be processed
Returns:
true if processing should continue, false if processing should stop

matches

public boolean matches(java.lang.Object object)
Returns false if the given object is no ClassInformation, otherwise it calls method matches(ClassInformation).

Specified by:
matches in interface org.pf.bif.filter.IObjectFilter
Parameters:
object - The object to be checked against this ClassInformation filter

getResultData

public TResultData getResultData()
Returns any data that has been produced during the processing. Here it always returns null. Subclasses may override this method to return something meaningful.

Specified by:
getResultData in interface IClassInformationProcessor<TResultData>
Returns:
null if nothing special was collected or calculated.