gov.llnl.babel
Class CommandLineDriver

java.lang.Object
  extended by gov.llnl.babel.CommandLineDriver

public class CommandLineDriver
extends java.lang.Object

This class is the main driver for running Babel from the command line.


Constructor Summary
CommandLineDriver(Context context, boolean multiMode)
          The protected singleton constructor instantiates the options parser, UserOptions.
 
Method Summary
 int generateCode(java.lang.String[] remainingArgs)
           
 void loadExtensions(CommandLineDictionary dict)
          Load and create an instance of each class in listed in the comma separated list stored in the Java property babel.extensions.
static void main(java.lang.String[] args)
          Main babel entry point.
 void printSymbolNames(java.util.Set symbols)
          Print all symbols to output.
 java.lang.String[] processCommandline(java.lang.String[] args)
          Extract the options from the command line arguments and perform associated set up as appropriate.
 int processMultiple(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineDriver

public CommandLineDriver(Context context,
                         boolean multiMode)
The protected singleton constructor instantiates the options parser, UserOptions.

See Also:
UserOptions
Method Detail

processCommandline

public java.lang.String[] processCommandline(java.lang.String[] args)
Extract the options from the command line arguments and perform associated set up as appropriate.

See Also:
BabelConfiguration

generateCode

public int generateCode(java.lang.String[] remainingArgs)

printSymbolNames

public void printSymbolNames(java.util.Set symbols)
Print all symbols to output. This is obviously intended only to facilitate debugging.


processMultiple

public int processMultiple(java.lang.String[] args)

loadExtensions

public void loadExtensions(CommandLineDictionary dict)
Load and create an instance of each class in listed in the comma separated list stored in the Java property babel.extensions.


main

public static void main(java.lang.String[] args)
Main babel entry point.