Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

j2s_Program Class Reference

This class implements the environment for a program (as opposed to a pass). More...

#include <module.h>

Inheritance diagram for j2s_Program:

Module Printclosure Printloader Printmetaloader List of all members.

Public Methods

 j2s_Program (SuifEnv* suif_env, const LString& moduleName)
virtual ~j2s_Program ()
virtual void set_usage_str (char* str)
virtual void usage_info ()
virtual Moduleclone () const
 generates a new copy of the current instance if necessary The implementor of a subclass is responsible for overriding this method if the implementation has a unique state the default implementation returns the current instance.

virtual void initialize ()
 initializes the modules. More...

virtual bool parse_command_line ( TokenStream* command_line_stream )
 parses the input for this Module.

virtual void execute ()
 executes the Module parse_command_line should be called before this method is invoked.


Public Attributes

String _classnames_file
OptionSelection_opt_flags
 Add optional arguments here.


Protected Attributes

char* _usage_str
String _class_file_name
 Java class file name given at command line.


Detailed Description

This class implements the environment for a program (as opposed to a pass).

The class is not meant to be invoked by the SUIF driver. Instead, the methods initialze(), parse_command_line(), and execute() should be called explicitly by the main program.


Constructor & Destructor Documentation

j2s_Program::j2s_Program ( SuifEnv * suif_env,
const LString & moduleName)

j2s_Program::~j2s_Program () [inline, virtual]


Member Function Documentation

Module * j2s_Program::clone ( void) const [inline, virtual]

generates a new copy of the current instance if necessary The implementor of a subclass is responsible for overriding this method if the implementation has a unique state the default implementation returns the current instance.

Reimplemented from Module.

void j2s_Program::execute ( void) [inline, virtual]

executes the Module parse_command_line should be called before this method is invoked.

Reimplemented from Module.

Reimplemented in Printclosure, Printloader, and Printmetaloader.

void j2s_Program::initialize ( void) [virtual]

initializes the modules.

This method must/will be called before a call to parse_command_line or execute

Reimplemented from Module.

Reimplemented in Printclosure, Printloader, and Printmetaloader.

bool j2s_Program::parse_command_line ( TokenStream * stream) [virtual]

parses the input for this Module.

Reimplemented from Module.

Reimplemented in Printclosure.

void j2s_Program::set_usage_str ( char * str) [inline, virtual]

void j2s_Program::usage_info () [virtual]


Member Data Documentation

String j2s_Program::_class_file_name [protected]

Java class file name given at command line.

String j2s_Program::_classnames_file

OptionSelection * j2s_Program::_opt_flags

Add optional arguments here.

char * j2s_Program::_usage_str [protected]


The documentation for this class was generated from the following files:
Generated at Mon Jul 31 13:43:32 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000