gov.llnl.babel.backend.c

Class GenerateClientC

Implemented Interfaces:
CodeGenerator, ContextAware

public class GenerateClientC
extends java.lang.Object
implements CodeGenerator

Class GenerateClientC is the main entry point for the C client-side code generation routines. This class generates the header and the stub files. It is assumed that all symbols necessary to generate C code are available in the symbol table.

Constructor Summary

GenerateClientC()
The constructor does nothing interesting.

Method Summary

void
generateCode(Set symbols)
Generate C client-side code for each symbol identifier in the set argument.
Set
getLanguages()
String
getName()
String
getType()
boolean
getUserSymbolsOnly()
void
setContext(Context context)
void
setName(String name)

Constructor Details

GenerateClientC

public GenerateClientC()
The constructor does nothing interesting. The entry point for the GenerateClientC class is generateCode.

Method Details

generateCode

public void generateCode(Set symbols)
            throws CodeGenerationException
Generate C client-side code for each symbol identifier in the set argument. This routine assumes that all necessary symbol references are available in the symbol table.
Specified by:
generateCode in interface CodeGenerator

getLanguages

public Set getLanguages()
Specified by:
getLanguages in interface CodeGenerator

getName

public String getName()
Specified by:
getName in interface CodeGenerator

getType

public String getType()
Specified by:
getType in interface CodeGenerator

getUserSymbolsOnly

public boolean getUserSymbolsOnly()
Specified by:
getUserSymbolsOnly in interface CodeGenerator

setContext

public void setContext(Context context)
Specified by:
setContext in interface ContextAware

setName

public void setName(String name)
            throws CodeGenerationException
Specified by:
setName in interface CodeGenerator