Class SummaryReporter
java.lang.Object
de.monticore.generating.templateengine.reporting.commons.DefaultReportEventHandler
de.monticore.generating.templateengine.reporting.commons.AReporter
de.monticore.generating.templateengine.reporting.reporter.SummaryReporter
- All Implemented Interfaces:
IReportEventHandler
- Direct Known Subclasses:
StatisticsReporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected intprotected ObjectCountVisitorprotected ReportingRepositorystatic final Stringprotected intprotected ITraverserFields inherited from class de.monticore.generating.templateengine.reporting.commons.AReporter
file, fileextension, fileOpen, qualifiedFileName, reportingHelper -
Constructor Summary
ConstructorsConstructorDescriptionSummaryReporter(String outputDir, String modelName, ReportingRepository repository, ITraverser traverser) -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod is called after generation.voidreportASTSpecificTemplateReplacement(String oldTemplate, ASTNode node, HookPoint newHp) voidreportCallAfterHookPoint(String oldTemplate, Collection<HookPoint> afterHPs, ASTNode ast) voidreportCallBeforeHookPoint(String oldTemplate, Collection<HookPoint> beforeHPs, ASTNode ast) voidreportCallHookPointStart(String hookName, HookPoint hp, ASTNode ast) voidreportCallReplacementHookPoint(String oldTemplate, List<HookPoint> hps, ASTNode ast) voidreportCallSpecificReplacementHookPoint(String oldTemplate, List<HookPoint> hps, ASTNode ast) voidreportError(String message) voidreportErrorInternal(String message) voidreportErrorUser(String message) voidreportFileCreation(String templatename, String qualifiedfilename, String fileextension, ASTNode ast) voidreportInstantiate(String className, List<Object> params) voidvoidreportSetBeforeTemplate(String template, Optional<ASTNode> ast, List<? extends HookPoint> beforeHps) voidreportSetHookPoint(String hookName, HookPoint hp) voidreportSetValue(String name, Object value) voidreportTemplateEnd(String templatename, ASTNode ast) voidreportTemplateInclude(String templateName, ASTNode ast) voidreportTemplateReplacement(String oldTemplate, List<? extends HookPoint> newHps) voidreportTemplateStart(String templatename, ASTNode ast) voidreportTemplateWrite(String templateName, ASTNode ast) voidreportUserWarning(String message) voidreportWarning(String message) protected voidprotected voidwriteContent(ASTNode ast) protected voidprotected voidprotected voidwriteSummaryLine(String string, int number) Methods inherited from class de.monticore.generating.templateengine.reporting.commons.AReporter
closeFile, openFile, writeLineMethods inherited from class de.monticore.generating.templateengine.reporting.commons.DefaultReportEventHandler
reportAddAfterTemplate, reportAddBeforeTemplate, reportAddValue, reportCallHookPointEnd, reportDetailed, reportExecuteStandardTemplate, reportFileCreation, reportFileCreation, reportFileExistenceChecking, reportFileFinalization, reportHWCExistenceCheck, reportMethodCall, reportModelEnd, reportModelLoad, reportModelStart, reportOpenInputFile, reportOpenInputFile, reportParseInputFile, reportSymbolTableScope, reportTransformationNewValue, reportTransformationNewValue, reportTransformationNewValue, reportTransformationObjectChange, reportTransformationObjectCreation, reportTransformationObjectDeletion, reportTransformationObjectMatch, reportTransformationOldValue, reportTransformationOldValue, reportTransformationOldValue, reportTransformationStart, reportUseHandwrittenCodeFile, reportUserSpecificTemplate
-
Field Details
-
NUM_TEMPLATE_INCLUDE
- See Also:
-
NUM_TEMPLATE_WRITE
- See Also:
-
NUM_GENERATED_FILES
- See Also:
-
NUM_INSTANTIATIONS
- See Also:
-
NUM_VARIABLES
- See Also:
-
NUM_VARIABLE_ASSIGNMENTS
- See Also:
-
NUM_WARNINGS
- See Also:
-
NUM_USER_WARNINGS
- See Also:
-
NUM_ERRORS
- See Also:
-
NUM_USER_ERRORS
- See Also:
-
NUM_INTERNAL_ERRORS
- See Also:
-
MAX_TEMPLATE_DEPTH
- See Also:
-
MAX_AST_DEPTH
- See Also:
-
NUM_USED_TEMPLATES
- See Also:
-
NUM_USED_HWTEMPLATES
- See Also:
-
NUM_UNUSED_HWTEMPLATES
- See Also:
-
NUM_ASTNODE_VISITS
- See Also:
-
NUM_ASTNODE_TYPES
- See Also:
-
NUM_ASTNODE_INSTANCES
- See Also:
-
NUM_AST_SPECIFIC_REPLACEMENTS
- See Also:
-
NUM_AST_SPECIFIC_CALLS
- See Also:
-
NUM_SET_CODE_HOOKPOINTS
- See Also:
-
NUM_CALL_CODE_HOOKPOINTS
- See Also:
-
NUM_SET_TEMPLATE_HOOKPOINTS
- See Also:
-
NUM_CALL_TEMPLATE_HOOKPOINTS
- See Also:
-
NUM_SET_STRING_HOOKPOINTS
- See Also:
-
NUM_CALL_STRING_HOOKPOINTS
- See Also:
-
NUM_CALLS_EMPTY_HOOKPOINTS
- See Also:
-
NUM_CALLED_EMPTY_HOOKPOINTS
- See Also:
-
SIMPLE_FILE_NAME
- See Also:
-
numTemplateIncludes
protected int numTemplateIncludes -
numTemplateWrites
protected int numTemplateWrites -
numGeneratedFiles
protected int numGeneratedFiles -
numInstantiations
protected int numInstantiations -
numVariableAssignments
protected int numVariableAssignments -
numWarnings
protected int numWarnings -
numUserWarnings
protected int numUserWarnings -
numErrors
protected int numErrors -
numUserErrors
protected int numUserErrors -
numInternalErrors
protected int numInternalErrors -
templateDepth
protected int templateDepth -
maxTemplateDepth
protected int maxTemplateDepth -
numASTNodeVisits
protected int numASTNodeVisits -
numASTSpecificReplacements
protected int numASTSpecificReplacements -
numASTSpecificCalls
protected int numASTSpecificCalls -
numSetCodeHookpoints
protected int numSetCodeHookpoints -
numCallCodeHookpoints
protected int numCallCodeHookpoints -
numSetTemplateHookpoints
protected int numSetTemplateHookpoints -
numCallTemplateHookpoints
protected int numCallTemplateHookpoints -
numSetStringHookpoints
protected int numSetStringHookpoints -
numCallStringHookpoints
protected int numCallStringHookpoints -
numCallsUnsetHookpoints
protected int numCallsUnsetHookpoints -
variableNames
-
usedTemplates
-
usedHWTemplates
-
calledUnsetHookpoints
-
repository
-
traverser
-
ocv
-
-
Constructor Details
-
SummaryReporter
public SummaryReporter(String outputDir, String modelName, ReportingRepository repository, ITraverser traverser)
-
-
Method Details
-
reportWarning
- Specified by:
reportWarningin interfaceIReportEventHandler- Overrides:
reportWarningin classDefaultReportEventHandler- Parameters:
message-- See Also:
-
reportUserWarning
- Specified by:
reportUserWarningin interfaceIReportEventHandler- Overrides:
reportUserWarningin classDefaultReportEventHandler- Parameters:
message-- See Also:
-
reportError
- Specified by:
reportErrorin interfaceIReportEventHandler- Overrides:
reportErrorin classDefaultReportEventHandler- Parameters:
message-- See Also:
-
reportErrorUser
- Specified by:
reportErrorUserin interfaceIReportEventHandler- Overrides:
reportErrorUserin classDefaultReportEventHandler- Parameters:
message-- See Also:
-
reportErrorInternal
- Specified by:
reportErrorInternalin interfaceIReportEventHandler- Overrides:
reportErrorInternalin classDefaultReportEventHandler- Parameters:
message-- See Also:
-
reportFileCreation
public void reportFileCreation(String templatename, String qualifiedfilename, String fileextension, ASTNode ast) - Specified by:
reportFileCreationin interfaceIReportEventHandler- Overrides:
reportFileCreationin classDefaultReportEventHandler- See Also:
-
reportSetValue
- Specified by:
reportSetValuein interfaceIReportEventHandler- Overrides:
reportSetValuein classDefaultReportEventHandler- Parameters:
name-value-- See Also:
-
reportInstantiate
- Specified by:
reportInstantiatein interfaceIReportEventHandler- Overrides:
reportInstantiatein classDefaultReportEventHandler- Parameters:
className-params-- See Also:
-
reportTemplateInclude
- Specified by:
reportTemplateIncludein interfaceIReportEventHandler- Overrides:
reportTemplateIncludein classDefaultReportEventHandler- Parameters:
templateName-ast-- See Also:
-
reportTemplateWrite
- Specified by:
reportTemplateWritein interfaceIReportEventHandler- Overrides:
reportTemplateWritein classDefaultReportEventHandler- Parameters:
templateName-ast-- See Also:
-
reportTemplateStart
- Specified by:
reportTemplateStartin interfaceIReportEventHandler- Overrides:
reportTemplateStartin classDefaultReportEventHandler- See Also:
-
reportTemplateEnd
- Specified by:
reportTemplateEndin interfaceIReportEventHandler- Overrides:
reportTemplateEndin classDefaultReportEventHandler- Parameters:
templatename-ast-- See Also:
-
reportCallAfterHookPoint
public void reportCallAfterHookPoint(String oldTemplate, Collection<HookPoint> afterHPs, ASTNode ast) - Specified by:
reportCallAfterHookPointin interfaceIReportEventHandler- Overrides:
reportCallAfterHookPointin classDefaultReportEventHandler- Parameters:
oldTemplate-afterHPs-ast-- See Also:
-
reportCallBeforeHookPoint
public void reportCallBeforeHookPoint(String oldTemplate, Collection<HookPoint> beforeHPs, ASTNode ast) - Specified by:
reportCallBeforeHookPointin interfaceIReportEventHandler- Overrides:
reportCallBeforeHookPointin classDefaultReportEventHandler- Parameters:
oldTemplate-beforeHPs-ast-- See Also:
-
reportCallReplacementHookPoint
- Specified by:
reportCallReplacementHookPointin interfaceIReportEventHandler- Overrides:
reportCallReplacementHookPointin classDefaultReportEventHandler- Parameters:
oldTemplate-hps-ast-- See Also:
-
reportCallSpecificReplacementHookPoint
public void reportCallSpecificReplacementHookPoint(String oldTemplate, List<HookPoint> hps, ASTNode ast) - Specified by:
reportCallSpecificReplacementHookPointin interfaceIReportEventHandler- Overrides:
reportCallSpecificReplacementHookPointin classDefaultReportEventHandler- Parameters:
oldTemplate-hps-ast-- See Also:
-
writeContent
-
writeSummaryLine
-
resetVariables
protected void resetVariables() -
flush
Description copied from class:AReporterMethod is called after generation.- Specified by:
flushin interfaceIReportEventHandler- Overrides:
flushin classAReporter- Parameters:
ast- Compilation unit AST or null on error
-
reportSetHookPoint
- Specified by:
reportSetHookPointin interfaceIReportEventHandler- Overrides:
reportSetHookPointin classDefaultReportEventHandler- Parameters:
hookName-hp-- See Also:
-
reportCallHookPointStart
- Specified by:
reportCallHookPointStartin interfaceIReportEventHandler- Overrides:
reportCallHookPointStartin classDefaultReportEventHandler- Parameters:
hookName-hp-ast-- See Also:
-
reportASTSpecificTemplateReplacement
- Specified by:
reportASTSpecificTemplateReplacementin interfaceIReportEventHandler- Overrides:
reportASTSpecificTemplateReplacementin classDefaultReportEventHandler- Parameters:
oldTemplate-node-newHp-- See Also:
-
reportSetBeforeTemplate
public void reportSetBeforeTemplate(String template, Optional<ASTNode> ast, List<? extends HookPoint> beforeHps) - Specified by:
reportSetBeforeTemplatein interfaceIReportEventHandler- Overrides:
reportSetBeforeTemplatein classDefaultReportEventHandler- Parameters:
template-beforeHps-- See Also:
-
reportSetAfterTemplate
public void reportSetAfterTemplate(String template, Optional<ASTNode> ast, List<? extends HookPoint> afterHps) - Specified by:
reportSetAfterTemplatein interfaceIReportEventHandler- Overrides:
reportSetAfterTemplatein classDefaultReportEventHandler- Parameters:
template-afterHps-- See Also:
-
reportTemplateReplacement
- Specified by:
reportTemplateReplacementin interfaceIReportEventHandler- Overrides:
reportTemplateReplacementin classDefaultReportEventHandler- Parameters:
oldTemplate-newHps-- See Also:
-
writeHeader
protected void writeHeader()- Specified by:
writeHeaderin classAReporter
-