Package org.ek9lang.cli
Class CommandLineDetails
java.lang.Object
org.ek9lang.cli.CommandLineDetails
Just deals with handling the command line options for the compiler.
Quite a beast now, but command line argument handling is always a bit complex.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCommandLineDetails
(LanguageMetaData languageMetaData, FileHandling fileHandling, OsSupport osSupport) Create a new command line details object. -
Method Summary
Modifier and TypeMethodDescription(package private) static void
boolean
boolean
(package private) static String
Just provides the commandline help text.(package private) FileHandling
Provides the full qualified path to the source file.(package private) LanguageMetaData
getOptionParameter
(String option) Access a parameter option from the command line.(package private) OsSupport
This is just the file name and not the full path to the source file.Access the visitor of the source code being parsed.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isHelp()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
(package private) int
processCommandLine
(String commandLine) Process the command line.(package private) int
processCommandLine
(String[] argv) Process the command line as supplied from main.processEk9FileProperties
(boolean forceRegeneration) Processes the properties and forces regeneration if required.
-
Field Details
-
Constructor Details
-
CommandLineDetails
CommandLineDetails(LanguageMetaData languageMetaData, FileHandling fileHandling, OsSupport osSupport) Create a new command line details object.
-
-
Method Details
-
addDefaultSetting
static void addDefaultSetting() -
getCommandLineHelp
Just provides the commandline help text. -
getOsSupport
OsSupport getOsSupport() -
getFileHandling
FileHandling getFileHandling() -
getLanguageMetaData
LanguageMetaData getLanguageMetaData() -
processCommandLine
Process the command line as supplied from main. Expects a single entry in the array. -
processCommandLine
Process the command line.- Parameters:
commandLine
- The command line the user or remote system used.- Returns:
- error code, 0 no error - see EK9.java for the use of other error codes.
-
processEk9FileProperties
Processes the properties and forces regeneration if required. -
getSourceVisitor
Access the visitor of the source code being parsed. -
getSourcePropertiesFile
-
numberOfProgramsInSourceFile
public int numberOfProgramsInSourceFile() -
getModuleName
-
noPackageIsPresent
public boolean noPackageIsPresent() -
getVersion
-
applyStandardIncludes
public boolean applyStandardIncludes() -
applyStandardExcludes
public boolean applyStandardExcludes() -
getIncludeFiles
-
getExcludeFiles
-
isDependenciesAltered
public boolean isDependenciesAltered() -
isDebuggingInstrumentation
public boolean isDebuggingInstrumentation() -
isDevBuild
public boolean isDevBuild() -
isJustBuildTypeOption
public boolean isJustBuildTypeOption() -
isReleaseVectorOption
public boolean isReleaseVectorOption() -
getEk9AppDefines
-
getEk9ProgramParameters
-
getTargetArchitecture
-
getProgramToRun
-
getSourceFileName
This is just the file name and not the full path to the source file. -
getFullPathToSourceFileName
Provides the full qualified path to the source file. -
getSourceFileDirectory
-
isVerbose
public boolean isVerbose() -
isDebugVerbose
public boolean isDebugVerbose() -
isDeveloperManagementOption
public boolean isDeveloperManagementOption() -
isGenerateSigningKeys
public boolean isGenerateSigningKeys() -
isUpdateUpgrade
public boolean isUpdateUpgrade() -
isCleanAll
public boolean isCleanAll() -
isResolveDependencies
public boolean isResolveDependencies() -
isIncrementalCompile
public boolean isIncrementalCompile() -
isFullCompile
public boolean isFullCompile() -
isCheckCompileOnly
public boolean isCheckCompileOnly() -
isPhasedCompileOnly
public boolean isPhasedCompileOnly() -
getOptionParameter
Access a parameter option from the command line. -
isInstall
public boolean isInstall() -
isPackaging
public boolean isPackaging() -
isDeployment
public boolean isDeployment() -
isPrintReleaseVector
public boolean isPrintReleaseVector() -
isIncrementReleaseVector
public boolean isIncrementReleaseVector() -
isSetReleaseVector
public boolean isSetReleaseVector() -
isSetFeatureVector
public boolean isSetFeatureVector() -
isHelp
public boolean isHelp() -
isVersionOfEk9Option
public boolean isVersionOfEk9Option() -
isRunEk9AsLanguageServer
public boolean isRunEk9AsLanguageServer() -
isEk9LanguageServerHelpEnabled
public boolean isEk9LanguageServerHelpEnabled() -
isRunOption
public boolean isRunOption() -
isUnitTestExecution
public boolean isUnitTestExecution() -
isRunDebugMode
public boolean isRunDebugMode() -
isRunNormalMode
public boolean isRunNormalMode()
-