Package org.ek9lang.cli
Class CommandLine
java.lang.Object
org.ek9lang.cli.CommandLine
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
ConstructorDescriptionCommandLine
(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
(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
int
options()
(package private) int
Process the command line.(package private) int
Process the command line as supplied from main.processEk9FileProperties
(boolean forceRegeneration) Processes the properties and forces regeneration if required.
-
Field Details
-
Constructor Details
-
CommandLine
CommandLine(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() -
process
Process the command line as supplied from main. Expects a single entry in the array. -
process
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.
-
options
-
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() -
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
-