Package org.ek9lang.cli
Class E
java.lang.Object
org.ek9lang.compiler.common.Reporter
org.ek9lang.cli.E
Abstract base for the command line EK9 commands.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
doRun()
Actually run the execution.protected File
protected File
protected String
protected FileHandling
protected File
protected File
protected OsSupport
protected abstract String
Provide the report/log message prefix.(package private) boolean
Do a post-condition check after the command has executed.(package private) boolean
Do a pre-condition check to ensure run can execute.(package private) boolean
run()
Methods inherited from class org.ek9lang.compiler.common.Reporter
isMuteReportedErrors, isVerbose, log, report, setMuteReportedErrors
-
Field Details
-
compilationContext
-
-
Constructor Details
-
E
E(CompilationContext compilationContext)
-
-
Method Details
-
run
boolean run() -
preConditionCheck
boolean preConditionCheck()Do a pre-condition check to ensure run can execute.- Returns:
- true if all Ok, false if pre-condition not met.
-
postConditionCheck
boolean postConditionCheck()Do a post-condition check after the command has executed.- Returns:
- true if all Ok, false if the post-condition has not been met.
-
messagePrefix
Description copied from class:Reporter
Provide the report/log message prefix.- Specified by:
messagePrefix
in classReporter
-
getFileHandling
-
getOsSupport
-
doRun
protected abstract boolean doRun()Actually run the execution. -
getDotEk9Directory
-
getMainGeneratedOutputDirectory
-
getMainFinalOutputDirectory
-
getDevGeneratedOutputDirectory
-
getDevFinalOutputDirectory
-