Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ch.epfl.lamp.smartanalysis
Class SimpleProjectAnalyser  view SimpleProjectAnalyser download SimpleProjectAnalyser.java

java.lang.Object
  extended bych.epfl.lamp.smartanalysis.ProjectAnalyser
      extended bych.epfl.lamp.smartanalysis.SimpleProjectAnalyser

public class SimpleProjectAnalyser
extends ProjectAnalyser

A class analysing a classpath to find what class files/source were modified and what dependencies should also be recompiled.

Version:
1.0

Field Summary
protected  java.util.Set toAnalyse
           
 
Fields inherited from class ch.epfl.lamp.smartanalysis.ProjectAnalyser
analyser, deletion, destPath, handle, list, sourcePath
 
Constructor Summary
SimpleProjectAnalyser(java.io.File f, java.lang.String classPath, java.lang.String[] sourcePath, boolean logAnalysis, Handle pro)
          Creates a new SimpleProjectAnalyser instance from a cache file.
SimpleProjectAnalyser(java.lang.String classPath, java.lang.String[] sourcePath, boolean logAnalysis, Handle pro)
          Creates a new SimpleProjectAnalyser instance from a cache file.
 
Method Summary
protected  void classFileDeleted(DepClass dclass, java.io.File classFile)
          what should be done if a class file is deleted.
protected  void classFileModified(DepClass dclass, java.io.File classFile)
          what should be done if a class file is modified.
protected  java.util.Set findDependentClass()
           
 DepClass[] getToClean()
          get the class that should be cleaned.
protected  void newClassFile(java.lang.String className)
          a new class has been found.
protected  void sourceFileModified(DepClass dclass, java.io.File sourceFile)
          what should be done if a source file is modified.
protected  void sourceFileNotDefined(DepClass dclass)
          the source file for this class is not defined properly.
protected  void sourceFileNotFound(DepClass dclass)
          the source file for this class has been deleted.
 
Methods inherited from class ch.epfl.lamp.smartanalysis.ProjectAnalyser
analyseLog, analyseLog, cache, cache, done, finalize, findClassListModification, findModifiedSource, writeClassList
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toAnalyse

protected java.util.Set toAnalyse
Constructor Detail

SimpleProjectAnalyser

public SimpleProjectAnalyser(java.lang.String classPath,
                             java.lang.String[] sourcePath,
                             boolean logAnalysis,
                             Handle pro)
                      throws java.io.IOException,
                             java.lang.ClassNotFoundException,
                             DuplicatedClassException,
                             ch.epfl.lamp.smartanalysis.util.FileNotFoundException
Creates a new SimpleProjectAnalyser instance from a cache file.


SimpleProjectAnalyser

public SimpleProjectAnalyser(java.io.File f,
                             java.lang.String classPath,
                             java.lang.String[] sourcePath,
                             boolean logAnalysis,
                             Handle pro)
                      throws java.io.FileNotFoundException,
                             java.io.IOException,
                             java.io.OptionalDataException,
                             java.lang.ClassNotFoundException,
                             java.lang.Exception
Creates a new SimpleProjectAnalyser instance from a cache file.

Method Detail

newClassFile

protected void newClassFile(java.lang.String className)
                     throws java.lang.Exception
Description copied from class: ProjectAnalyser
a new class has been found.

Specified by:
newClassFile in class ProjectAnalyser

classFileDeleted

protected void classFileDeleted(DepClass dclass,
                                java.io.File classFile)
what should be done if a class file is deleted.

Specified by:
classFileDeleted in class ProjectAnalyser

classFileModified

protected void classFileModified(DepClass dclass,
                                 java.io.File classFile)
what should be done if a class file is modified.

Specified by:
classFileModified in class ProjectAnalyser

sourceFileNotFound

protected void sourceFileNotFound(DepClass dclass)
                           throws java.lang.Exception
Description copied from class: ProjectAnalyser
the source file for this class has been deleted.

Specified by:
sourceFileNotFound in class ProjectAnalyser

sourceFileNotDefined

protected void sourceFileNotDefined(DepClass dclass)
                             throws java.lang.Exception
Description copied from class: ProjectAnalyser
the source file for this class is not defined properly.

Specified by:
sourceFileNotDefined in class ProjectAnalyser

sourceFileModified

protected void sourceFileModified(DepClass dclass,
                                  java.io.File sourceFile)
what should be done if a source file is modified.

Specified by:
sourceFileModified in class ProjectAnalyser

findDependentClass

protected java.util.Set findDependentClass()

getToClean

public DepClass[] getToClean()
get the class that should be cleaned.