Class CommandLine

java.lang.Object
org.ek9lang.cli.CommandLine

final class CommandLine extends Object
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 Details

    • ek9ProgramToRun

      String ek9ProgramToRun
    • targetArchitecture

      String targetArchitecture
    • debugPort

      int debugPort
  • Constructor Details

  • Method Details

    • addDefaultSetting

      static void addDefaultSetting()
    • getCommandLineHelp

      static String getCommandLineHelp()
      Just provides the commandline help text.
    • getOsSupport

      OsSupport getOsSupport()
    • getFileHandling

      FileHandling getFileHandling()
    • getLanguageMetaData

      LanguageMetaData getLanguageMetaData()
    • process

      int process(String[] argv)
      Process the command line as supplied from main. Expects a single entry in the array.
    • process

      int process(String commandLine)
      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

      public CommandLineOptions options()
    • processEk9FileProperties

      public Integer processEk9FileProperties(boolean forceRegeneration)
      Processes the properties and forces regeneration if required.
    • getSourceVisitor

      public Ek9SourceVisitor getSourceVisitor()
      Access the visitor of the source code being parsed.
    • getSourcePropertiesFile

      public File getSourcePropertiesFile()
    • numberOfProgramsInSourceFile

      public int numberOfProgramsInSourceFile()
    • getModuleName

      public String getModuleName()
    • noPackageIsPresent

      public boolean noPackageIsPresent()
    • getVersion

      public String getVersion()
    • applyStandardIncludes

      public boolean applyStandardIncludes()
    • applyStandardExcludes

      public boolean applyStandardExcludes()
    • getIncludeFiles

      public List<String> getIncludeFiles()
    • getExcludeFiles

      public List<String> getExcludeFiles()
    • isDependenciesAltered

      public boolean isDependenciesAltered()
    • getEk9AppDefines

      public List<String> getEk9AppDefines()
    • getEk9ProgramParameters

      public List<String> getEk9ProgramParameters()
    • getTargetArchitecture

      public String getTargetArchitecture()
    • getProgramToRun

      public String getProgramToRun()
    • getSourceFileName

      public String getSourceFileName()
      This is just the file name and not the full path to the source file.
    • getFullPathToSourceFileName

      public String getFullPathToSourceFileName()
      Provides the full qualified path to the source file.
    • getSourceFileDirectory

      public String getSourceFileDirectory()