gov.llnl.babel

Class 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(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(args[] )
Main babel entry point.
void
printSymbolNames(Set symbols)
Print all symbols to output.
String[]
processCommandline(args[] )
Extract the options from the command line arguments and perform associated set up as appropriate.
int
processMultiple(String[] args)

Constructor Details

CommandLineDriver

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

Method Details

generateCode

public int generateCode(String[] remainingArgs)

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(args[] )
Main babel entry point.

printSymbolNames

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

processCommandline

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

processMultiple

public int processMultiple(String[] args)