org.objectweb.speedo.generation.recompiler
Class UpToDateVisitor

java.lang.Object
  extended byorg.objectweb.speedo.generation.lib.AbstractGeneratorComponent
      extended byorg.objectweb.speedo.generation.mivisitor.AbstractMetaInfoVisitor
          extended byorg.objectweb.speedo.generation.mivisitor.MetaInfoVisitorImpl
              extended byorg.objectweb.speedo.generation.recompiler.UpToDateVisitor
All Implemented Interfaces:
GeneratorComponent, MetaInfoVisitor

public class UpToDateVisitor
extends MetaInfoVisitorImpl

Checks the date of the source and the built files: - .jdo / JMI file - .java / .class For each .jdo file, if the .jdo or a .java has been modified all classes are removed in order to re-enhance all classed. TODO: check aware classes

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from class org.objectweb.speedo.generation.mivisitor.AbstractMetaInfoVisitor
LOGGER_NAME
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
debug, logger, scp
 
Constructor Summary
UpToDateVisitor()
          builds a MetaInfoVisitor which is the last of the chain
UpToDateVisitor(MetaInfoVisitor mim)
          builds a MetaInfoVisitor which is the last of the chain
 
Method Summary
protected  java.lang.String getLoggerName()
           
 boolean init()
           
 void visitClass(SpeedoClass sc)
           
 void visitCompilerParameter(SpeedoCompilerParameter scp)
           
 void visitXml(SpeedoXMLDescriptor xml)
           
 
Methods inherited from class org.objectweb.speedo.generation.mivisitor.MetaInfoVisitorImpl
visitField, visitPackage
 
Methods inherited from class org.objectweb.speedo.generation.mivisitor.AbstractMetaInfoVisitor
getNext, getSpeedoClass, process, setNext, visitExtension
 
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
getLogger, getSpeedoCompilerParameter, setLogger, setSpeedoCompilerParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpToDateVisitor

public UpToDateVisitor()
builds a MetaInfoVisitor which is the last of the chain


UpToDateVisitor

public UpToDateVisitor(MetaInfoVisitor mim)
builds a MetaInfoVisitor which is the last of the chain

Method Detail

getLoggerName

protected java.lang.String getLoggerName()
Overrides:
getLoggerName in class AbstractMetaInfoVisitor

init

public boolean init()
             throws SpeedoException
Specified by:
init in interface GeneratorComponent
Overrides:
init in class AbstractMetaInfoVisitor
Throws:
SpeedoException

visitCompilerParameter

public void visitCompilerParameter(SpeedoCompilerParameter scp)
                            throws SpeedoException
Specified by:
visitCompilerParameter in interface MetaInfoVisitor
Overrides:
visitCompilerParameter in class MetaInfoVisitorImpl
Throws:
SpeedoException

visitXml

public void visitXml(SpeedoXMLDescriptor xml)
              throws SpeedoException
Specified by:
visitXml in interface MetaInfoVisitor
Overrides:
visitXml in class MetaInfoVisitorImpl
Throws:
SpeedoException

visitClass

public void visitClass(SpeedoClass sc)
                throws SpeedoException
Specified by:
visitClass in interface MetaInfoVisitor
Overrides:
visitClass in class MetaInfoVisitorImpl
Throws:
SpeedoException