ptolemy.copernicus.c
Class StubFileGenerator

java.lang.Object
  extended by ptolemy.copernicus.c.CodeGenerator
      extended by ptolemy.copernicus.c.StubFileGenerator

public class StubFileGenerator
extends CodeGenerator

A C code generator for generating "stub header files" that implement Java classes.

Since:
Ptolemy II 4.0
Version:
$Id: StubFileGenerator.java,v 1.19 2006/03/28 23:58:39 cxh Exp $
Author:
Ankush Varma
Accepted Rating:
Red (ankush)
Proposed Rating:
Red (ankush)

Field Summary
 
Fields inherited from class ptolemy.copernicus.c.CodeGenerator
_context, _requiredTypeMap
 
Constructor Summary
StubFileGenerator()
          Construct a stub file generator.
 
Method Summary
 java.lang.String generate(soot.SootClass source)
          Generate code for a stub header file that implements declarations associated with a class.
static java.lang.String stubFileNameSuffix()
          Return the appropriate suffix for the stub header files.
 
Methods inherited from class ptolemy.copernicus.c.CodeGenerator
_comment, _generateArrayInstanceDeclarations, _generateIncludeDirectives, _generateMethodHeader, _generateParameterTypeList, _getRequiredIncludeFiles, _indent, _removeRequiredType, _updateRequiredTypes, _warn, setSingleClassMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubFileGenerator

public StubFileGenerator()
Construct a stub file generator.

Method Detail

generate

public java.lang.String generate(soot.SootClass source)
Generate code for a stub header file that implements declarations associated with a class.

Specified by:
generate in class CodeGenerator
Parameters:
source - The class.
Returns:
Stub header code for the class.

stubFileNameSuffix

public static java.lang.String stubFileNameSuffix()
Return the appropriate suffix for the stub header files.

Returns:
The suffix.