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

java.lang.Object
  extended by org.pf.tools.cda.base.model.processing.AClassInformationProcessor<TResultData>
      extended by org.pf.tools.cda.core.dependency.analyzer.MainClassDetector<TResultData>
All Implemented Interfaces:
org.pf.bif.filter.IObjectFilter, IAnalyzableElementProcessor<ClassInformation>, IClassInformationProcessor<TResultData>

public class MainClassDetector<TResultData>
extends AClassInformationProcessor<TResultData>

Detects all classes that implement a static main(String[]) method.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
MainClassDetector()
           
 
Method Summary
 boolean matches(ClassInformation classInfo)
          Here it always returns false because the classes will be selected separately in the process(ClassInformation) method.
 boolean process(ClassInformation classInfo)
          Does nothing special because collecting is done already based on the matches() method result.
 
Methods inherited from class org.pf.tools.cda.base.model.processing.AClassInformationProcessor
getResultData, matches
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainClassDetector

public MainClassDetector()
Method Detail

matches

public boolean matches(ClassInformation classInfo)
Here it always returns false because the classes will be selected separately in the process(ClassInformation) method.

Parameters:
classInfo - Any element object or even null

process

public boolean process(ClassInformation classInfo)
Does nothing special because collecting is done already based on the matches() method result. Returns true to continue processing.

Parameters:
classInfo - The element object to be processed
Returns:
true if processing should continue, false if processing should stop