Class Reporter
java.lang.Object
org.ek9lang.compiler.common.Reporter
- Direct Known Subclasses:
- CompilerReporter, DependencyNodeFactory, E, PackageResolver
Designed to ensure consistent reporting as part of the command line
commands and executions.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedReporter(boolean verbose, boolean muteReportedErrors) While it may seem strange to want to even be able to mute reported errors, this class can/it used in developer tests and in some cases we don't want to see the actual errors.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanvoidLog a message to stderr if verbose enabled.protected abstract StringProvide the report/log message prefix.voidReport a message to stderr.voidsetMuteReportedErrors(boolean muteReportedErrors) 
- 
Constructor Details- 
Reporterprotected Reporter(boolean verbose, boolean muteReportedErrors) While it may seem strange to want to even be able to mute reported errors, this class can/it used in developer tests and in some cases we don't want to see the actual errors.- Parameters:
- verbose- if true then compiler phase details and other general logging is output.
- muteReportedErrors- if true then even compiler errors are not reported (typically only useful in tests).
 
 
- 
- 
Method Details- 
messagePrefixProvide the report/log message prefix.
- 
logLog a message to stderr if verbose enabled.
- 
reportReport a message to stderr.
- 
isVerbosepublic boolean isVerbose()
- 
isMuteReportedErrorspublic boolean isMuteReportedErrors()
- 
setMuteReportedErrorspublic void setMuteReportedErrors(boolean muteReportedErrors) 
 
-