gov.llnl.babel.backend.ior

Class GenerateIORServer

Implemented Interfaces:
CodeGenerator, ContextAware

public class GenerateIORServer
extends java.lang.Object
implements CodeGenerator

Class GenerateIORClient is the main entry point for the IOR code generation routines. This class calls the IOR header and source file generation routines. It is assumed that all symbols necessary to generate IOR code are available in the symbol table, which can be guaranteed by calling resolveAllReferences on the symbol table.

Constructor Summary

GenerateIORServer()
The constructor does nothing interesting.

Method Summary

void
generateCode(Set symbols)
Generate IOR 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

GenerateIORServer

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

Method Details

generateCode

public void generateCode(Set symbols)
            throws CodeGenerationException
Generate IOR 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