|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.injection.reverseeng.FileSaveConsumer
InjectionConsumer used to save changes made via RevengGUI.
Field Summary | |
private AnalysisConsumer |
m_acAnalysisResults
The AnalysisConsumer that contains the information about the analysed file. |
private AbstractDescriptor |
m_adCurrentFeature
The next feature that needs a corrected doccomment. |
private int |
m_cComments
The number of doc comments in the current file so far. |
private boolean |
m_fWroteDocComment
True if a doccomment has been written after the last feature. |
private IndentAwareWriter |
m_iawOutput
The writer used to produce the output file. |
private Iterator |
m_iFeatures
The Iterator of features that need a corrected doccomment. |
Constructor Summary | |
FileSaveConsumer(IndentAwareWriter iawOutput,
AnalysisConsumer acAnalysisResults)
Creates new FileSaveConsumer |
Method Summary | |
private AbstractDescriptor |
getCurrentFeature()
|
void |
onAttributeHeader(JavaAttribute ja)
Encountered the header of a java attribute. |
void |
onBehaviourHeader(JavaBehaviour jb)
Encountered the header of a java method. |
void |
onClass(JavaClass cc)
Encountered a class header. |
void |
onClassEnd(JavaClass cc)
Encountered the end of a class. |
void |
onClassFeature(JavaFeature cf,
String doccomment)
Called for attributes and methods. |
boolean |
onDocComment(String doccomment)
Encountered a java documentation comment. |
void |
onFileDocComment(String doccomment)
Encountered a java documentation comment. |
void |
onFileEnd()
Encountered the end of the input stream. |
void |
onImport(String importname)
Encountered an import statement. |
void |
onPackage(JavaFile javafile)
Encountered a package statement. |
static void |
save(File fSource,
File fDest,
AnalysisConsumer acAnalysisResults)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private IndentAwareWriter m_iawOutput
private AnalysisConsumer m_acAnalysisResults
private int m_cComments
private Iterator m_iFeatures
private AbstractDescriptor m_adCurrentFeature
private boolean m_fWroteDocComment
Constructor Detail |
public FileSaveConsumer(IndentAwareWriter iawOutput, AnalysisConsumer acAnalysisResults)
Method Detail |
private AbstractDescriptor getCurrentFeature()
public void onPackage(JavaFile javafile) throws InjectorParseException
onPackage
in interface InjectionConsumer
InjectorParseException
JavaFile.getPackageName()
public void onImport(String importname)
onImport
in interface InjectionConsumer
JavaFile.findType(String)
public void onClass(JavaClass cc)
onClass
in interface InjectionConsumer
public void onClassEnd(JavaClass cc) throws IOException, InjectorParseException
onClassEnd
in interface InjectionConsumer
IOException
InjectorParseException
onClass(JavaClass)
public void onBehaviourHeader(JavaBehaviour jb) throws IOException
onClassFeature(JavaFeature, String)
.
onBehaviourHeader
in interface InjectionConsumer
IOException
public void onAttributeHeader(JavaAttribute ja) throws IOException
InjectionConsumer
InjectionConsumer.onClassFeature(JavaFeature, String)
.
onAttributeHeader
in interface InjectionConsumer
IOException
public void onClassFeature(JavaFeature cf, String doccomment)
onBehaviourHeader(JavaBehaviour)
.
onClassFeature
in interface InjectionConsumer
public boolean onDocComment(String doccomment) throws IOException
onDocComment
in interface InjectionConsumer
IOException
public void onFileDocComment(String doccomment) throws IOException
InjectionConsumer
onFileDocComment
in interface InjectionConsumer
IOException
public void onFileEnd()
onFileEnd
in interface InjectionConsumer
public static void save(File fSource, File fDest, AnalysisConsumer acAnalysisResults) throws IOException
IOException
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |