gov.llnl.babel.backend.ior
public class IORHeader extends java.lang.Object
IORHeader
generates an IOR header to a language writer
output stream. The constructor takes a language writer stream and method
generateCode
generates the intermediate object header code
for the specified symbol to the output stream. The language writer output
stream is not closed by this object.Constructor and Description |
---|
IORHeader(LanguageWriterForC writer,
Context context)
Create a
IORHeader object that will write symbol information
to the provided output language writer stream. |
Modifier and Type | Method and Description |
---|---|
void |
generateCode(Symbol symbol)
Write IOR header information for the provided symbol to the language
writer output stream provided in the constructor.
|
static void |
generateCode(Symbol symbol,
LanguageWriterForC writer,
Context context)
This is a convenience utility function that writes the symbol
header information into the provided language writer output stream.
|
public IORHeader(LanguageWriterForC writer, Context context)
IORHeader
object that will write symbol information
to the provided output language writer stream.public static void generateCode(Symbol symbol, LanguageWriterForC writer, Context context) throws CodeGenerationException
CodeGenerationException
public void generateCode(Symbol symbol) throws CodeGenerationException
CodeGenerationException