org.objectweb.speedo.generation.recompiler
Class UpToDateVisitor
java.lang.Object
org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
org.objectweb.speedo.generation.mivisitor.AbstractMetaInfoVisitor
org.objectweb.speedo.generation.mivisitor.MetaInfoVisitorImpl
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpToDateVisitor
public UpToDateVisitor(Personality p)
- builds a MetaInfoVisitor which is the last of the chain
UpToDateVisitor
public UpToDateVisitor(MetaInfoVisitor mim,
Personality p)
- builds a MetaInfoVisitor which is the last of the chain
getLoggerName
protected java.lang.String getLoggerName()
- Overrides:
getLoggerName
in class AbstractMetaInfoVisitor
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle
in interface GeneratorComponent
- Overrides:
getTitle
in class AbstractGeneratorComponent
- Returns:
- a short string (less than 30 characters) representing the
title of the component. This string must indicate job of the component.
init
public boolean init()
throws SpeedoException
- Description copied from interface:
GeneratorComponent
- Initializes the component
- Specified by:
init
in interface GeneratorComponent
- Overrides:
init
in class AbstractMetaInfoVisitor
- Returns:
- boolean value indicating if the process method can be called.
- Throws:
SpeedoException
- if the component initialization fails
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