gov.llnl.babel.backend.fortran

Class TypeModule


public class TypeModule
extends java.lang.Object

This class generates a FORTRAN 90 module holding the derived type for client-side users. The type is held separately to avoid circular dependencies. If d_sym is null, we generate a type for generic arrays. Since this is A special case, the code is now full of little hacks to deal with it.

Constructor Summary

TypeModule(LanguageWriterForFortran writer, Symbol sym)

Method Summary

void
generateCode()
static void
generateCode(Symbol sym, LanguageWriterForFortran writer)
Generate the FORTRAN 90 type module for a sidl extendable (i.e., class or interface).

Constructor Details

TypeModule

public TypeModule(LanguageWriterForFortran writer,
                  Symbol sym)

Method Details

generateCode

public void generateCode()

generateCode

public static void generateCode(Symbol sym,
                                LanguageWriterForFortran writer)
            throws CodeGenerationException
Generate the FORTRAN 90 type module for a sidl extendable (i.e., class or interface).
Throws:
CodeGenerationException - a catch all exception to indicate problems in the code generation phase.