gov.llnl.babel.backend.jdk
Class JavaImplSource

java.lang.Object
  extended bygov.llnl.babel.backend.jdk.JavaImplSource

public class JavaImplSource
extends java.lang.Object

Create and write a source file for a Java extension class to wrap a BABEL extendable in a Java object.


Constructor Summary
JavaImplSource(Extendable ext)
          Create an object capable of generating the source file for Java implementation
 
Method Summary
 void generateCode()
          Writes Java implimentation based on the symbol given to the constructor
static void generateCode(Extendable ext)
          Writes Java implementation based on the provided symbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaImplSource

public JavaImplSource(Extendable ext)
               throws CodeGenerationException
Create an object capable of generating the source file for Java implementation

Parameters:
ext - an interface or class symbol that needs source file for a Java extension class.
Method Detail

generateCode

public static void generateCode(Extendable ext)
                         throws CodeGenerationException
Writes Java implementation based on the provided symbol

Parameters:
ext - an interface or class symbol that needs source file for a Java extension class.
Throws:
CodeGenerationException

generateCode

public void generateCode()
                  throws CodeGenerationException
Writes Java implimentation based on the symbol given to the constructor

Throws:
CodeGenerationException