gov.llnl.babel.backend.jdk
Class JavaImplSource
java.lang.Object
gov.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.
JavaImplSource
public JavaImplSource(Extendable ext,
Context context)
throws CodeGenerationException
Create an object capable of generating the source file for Java implementation
ext
- an interface or class symbol that needs source
file for a Java extension class.
addSplicerBlock
public void addSplicerBlock(String ext,
Method method,
boolean addDefaults,
String defComment)
Add splicer block.
ext
- splicer block-specific name extension.method
- Either a method instance, if splicer is for a method,
or null.addDefaults
- TRUE if splicer defaults to be added for method;
otherwise, FALSE.defComment
- Default comment (for non-method splicer blocks).
generateCode
public void generateCode()
throws CodeGenerationException
Writes Java implimentation based on the symbol given to the constructor
generateCode
public static void generateCode(Extendable ext,
Context context)
throws CodeGenerationException
Writes Java implementation based on the provided symbol
ext
- an interface or class symbol that needs source
file for a Java extension class.