Class AReporter
java.lang.Object
de.monticore.generating.templateengine.reporting.commons.DefaultReportEventHandler
de.monticore.generating.templateengine.reporting.commons.AReporter
- All Implemented Interfaces:
IReportEventHandler
- Direct Known Subclasses:
ArtifactReporter,DetailedReporter,GeneratedFilesReporter,HandWrittenCodeReporter,HookPointReporter,IncGenReporter,InstantiationsReporter,InvolvedFilesReporter,NodeTreeDecoratedReporter,NodeTreeReporter,NodeTypesReporter,SuccessfulReporter,SuccessfulReporter,SummaryReporter,TemplatesReporter,TemplateTreeReporter,TransformationReporter,VariablesReporter
Common functionality for all reporters.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fileprotected Stringprotected booleanprotected Stringprotected ReportCreator -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.monticore.generating.templateengine.reporting.commons.DefaultReportEventHandler
reportAddAfterTemplate, reportAddBeforeTemplate, reportAddValue, reportASTSpecificTemplateReplacement, reportCallAfterHookPoint, reportCallBeforeHookPoint, reportCallHookPointEnd, reportCallHookPointStart, reportCallReplacementHookPoint, reportCallSpecificReplacementHookPoint, reportDetailed, reportError, reportErrorInternal, reportErrorUser, reportExecuteStandardTemplate, reportFileCreation, reportFileCreation, reportFileCreation, reportFileExistenceChecking, reportFileFinalization, reportHWCExistenceCheck, reportInstantiate, reportMethodCall, reportModelEnd, reportModelLoad, reportModelStart, reportOpenInputFile, reportOpenInputFile, reportParseInputFile, reportSetAfterTemplate, reportSetBeforeTemplate, reportSetHookPoint, reportSetValue, reportSymbolTableScope, reportTemplateEnd, reportTemplateInclude, reportTemplateReplacement, reportTemplateStart, reportTemplateWrite, reportTransformationNewValue, reportTransformationNewValue, reportTransformationNewValue, reportTransformationObjectChange, reportTransformationObjectCreation, reportTransformationObjectDeletion, reportTransformationObjectMatch, reportTransformationOldValue, reportTransformationOldValue, reportTransformationOldValue, reportTransformationStart, reportUseHandwrittenCodeFile, reportUserSpecificTemplate, reportUserWarning, reportWarning
-
Field Details
-
reportingHelper
-
file
-
fileOpen
protected boolean fileOpen -
fileextension
-
qualifiedFileName
-
-
Constructor Details
-
AReporter
-
-
Method Details
-
openFile
protected void openFile() -
writeLine
Writes a single Line to the corresponding file. The file is opened if it has not been opened before.- Parameters:
line-
-
closeFile
public void closeFile() -
flush
Method is called after generation.- Specified by:
flushin interfaceIReportEventHandler- Overrides:
flushin classDefaultReportEventHandler- Parameters:
node- Compilation unit AST or null on error
-
writeHeader
protected abstract void writeHeader()
-