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

j2s_FrontEndPass Class Reference

This class implements an abstract j2s front-end pass. More...

#include <j2s_pass.h>

Inheritance diagram for j2s_FrontEndPass:

FrontendPass Module j2s_Pass J2sClosurePass md_Pass sup_Pass List of all members.

Public Methods

 j2s_FrontEndPass (SuifEnv *env, const LString &name)
virtual ~j2s_FrontEndPass (void)
virtual String default_outfile_name () = 0
 Default name for the output file w/o suffix. More...

virtual String file_suffix ()
 Returns current file suffix for the output file, which is the default_file_suffix().

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

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

virtual FileSetBlock* build_file_set_block () = 0
 This method will be called by execute() of FrontendPass.

 j2s_FrontEndPass (SuifEnv *env, const LString &name)
virtual ~j2s_FrontEndPass (void)
virtual String class_file_name ()
 Name of the Java class file.

virtual String outfile_name ()
 Name for the output file (with suffix).

virtual String default_outfile_name () = 0
 Default name for the output file w/o suffix. More...

virtual String file_suffix ()
 Returns current file suffix for the output file, which is the default_file_suffix().

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

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

virtual FileSetBlock* build_file_set_block () = 0
 This method will be called by execute() of FrontendPass.


Public Attributes

String _classnames_file
String _output_dir
bool _output_to_classfile_dir
bool _print_suif
bool _init_fsb
bool _help
OptionSelection_opt_flags
 Add optional arguments here.


Static Public Methods

String default_file_suffix ()
 Returns default file suffix for the output file.

String default_file_suffix ()
 Returns default file suffix for the output file.


Protected Attributes

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

String _outfile_name
 Name of output file.


Static Protected Attributes

String _dir_separator = String("/")


Detailed Description

This class implements an abstract j2s front-end pass.

All j2s front-end passes take the same command line arguments and expect a Java class file as input file.


Constructor & Destructor Documentation

j2s_FrontEndPass::j2s_FrontEndPass ( SuifEnv * env,
const LString & name)

j2s_FrontEndPass::~j2s_FrontEndPass ( void) [inline, virtual]

j2s_FrontEndPass::j2s_FrontEndPass ( SuifEnv * env,
const LString & name)

j2s_FrontEndPass::~j2s_FrontEndPass ( void) [inline, virtual]


Member Function Documentation

FileSetBlock * j2s_FrontEndPass::build_file_set_block () [inline, pure virtual]

This method will be called by execute() of FrontendPass.

Reimplemented from FrontendPass.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

FileSetBlock * j2s_FrontEndPass::build_file_set_block () [inline, pure virtual]

This method will be called by execute() of FrontendPass.

Reimplemented from FrontendPass.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

String j2s_FrontEndPass::class_file_name () [inline, virtual]

Name of the Java class file.

String j2s_FrontEndPass::default_file_suffix () [static]

Returns default file suffix for the output file.

String j2s_FrontEndPass::default_file_suffix () [static]

Returns default file suffix for the output file.

String j2s_FrontEndPass::default_outfile_name () [inline, pure virtual]

Default name for the output file w/o suffix.

Used if no file name is given at the command line.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

String j2s_FrontEndPass::default_outfile_name () [inline, pure virtual]

Default name for the output file w/o suffix.

Used if no file name is given at the command line.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

String j2s_FrontEndPass::file_suffix () [inline, virtual]

Returns current file suffix for the output file, which is the default_file_suffix().

String j2s_FrontEndPass::file_suffix () [inline, virtual]

Returns current file suffix for the output file, which is the default_file_suffix().

void j2s_FrontEndPass::initialize ( void) [pure virtual]

initializes the modules.

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

Reimplemented from FrontendPass.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

void j2s_FrontEndPass::initialize ( void) [pure virtual]

initializes the modules.

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

Reimplemented from FrontendPass.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

String j2s_FrontEndPass::outfile_name () [inline, virtual]

Name for the output file (with suffix).

bool j2s_FrontEndPass::parse_command_line ( TokenStream * command_line_stream) [virtual]

parses the input for this Module.

Reimplemented from Module.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.

bool j2s_FrontEndPass::parse_command_line ( TokenStream * command_line_stream) [pure virtual]

parses the input for this Module.

Reimplemented from Module.

Reimplemented in J2sClosurePass, j2s_Pass, md_Pass, and sup_Pass.


Member Data Documentation

String j2s_FrontEndPass::_class_file_name [protected]

Java class file name given at command line.

char * j2s_FrontEndPass::_classname [protected]

String j2s_FrontEndPass::_classnames_file

String j2s_FrontEndPass::_dir_separator = String("/") [static, protected]

bool j2s_FrontEndPass::_help

bool j2s_FrontEndPass::_init_fsb

OptionSelection * j2s_FrontEndPass::_opt_flags

Add optional arguments here.

String j2s_FrontEndPass::_outfile_name [protected]

Name of output file.

String j2s_FrontEndPass::_output_dir

bool j2s_FrontEndPass::_output_to_classfile_dir

bool j2s_FrontEndPass::_print_suif

char * j2s_FrontEndPass::_raw_outfile [protected]


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