|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.copernicus.c.CodeGenerator
ptolemy.copernicus.c.CodeFileGenerator
A C code generator for generating "code files" (.c files) that implement Java classes.
| Red (ssb) |
| Red (ssb) |
| Field Summary |
| Fields inherited from class ptolemy.copernicus.c.CodeGenerator |
_context, _requiredTypeMap |
| Constructor Summary | |
CodeFileGenerator()
Construct a code file generator. |
|
| Method Summary | |
protected java.lang.StringBuffer |
_declareConstants()
Generate declarations for constants in the generated code. |
java.lang.String |
generate(soot.SootClass source)
Generate C code for a class, including code (function declarations) for all of its methods, and for its initialization function. |
| 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 |
public CodeFileGenerator()
| Method Detail |
public java.lang.String generate(soot.SootClass source)
generate in class CodeGeneratorsource - The class.
protected java.lang.StringBuffer _declareConstants()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||