beginFunctions
public void beginFunctions(net.java.games.gluegen.cgram.types.TypeDictionary typedefDictionary,
net.java.games.gluegen.cgram.types.TypeDictionary structDictionary,
Map canonMap)
throws Exception
- beginFunctions in interface GlueEmitter
beginStructs
public void beginStructs(net.java.games.gluegen.cgram.types.TypeDictionary typedefDictionary,
net.java.games.gluegen.cgram.types.TypeDictionary structDictionary,
Map canonMap)
throws Exception
- beginStructs in interface GlueEmitter
bindingNeedsBody
protected boolean bindingNeedsBody(MethodBinding binding)
cWriter
protected PrintWriter cWriter()
createConfig
protected JavaConfiguration createConfig()
Create the object that will read and store configuration information for
this JavaEmitter.
emitAllFileFooters
protected void emitAllFileFooters()
Write out any footer information for the output files (closing brace of
class definition, etc).
emitAllFileHeaders
protected void emitAllFileHeaders()
throws IOException
Write out any header information for the output files (class declaration
and opening brace, import statements, etc).
emitCHeader
protected void emitCHeader(PrintWriter cWriter,
String className)
emitCustomJavaCode
protected void emitCustomJavaCode(PrintWriter writer,
String className)
throws Exception
Emit all the strings specified in the "CustomJavaCode" parameters of
the configuration file.
emitDefine
public void emitDefine(String name,
String value,
String optionalComment)
throws Exception
- emitDefine in interface GlueEmitter
emitFunctions
public Iterator emitFunctions(List originalCFunctions)
throws Exception
emitStruct
public void emitStruct(net.java.games.gluegen.cgram.types.CompoundType structType,
String alternateName)
throws Exception
- emitStruct in interface GlueEmitter
generateMethodBindingEmitters
protected List generateMethodBindingEmitters(net.java.games.gluegen.cgram.types.FunctionSymbol sym)
throws Exception
Generate all appropriate Java bindings for the specified C function
symbols.
getConfig
protected JavaConfiguration getConfig()
Get the configuration information for this JavaEmitter.
getImplPackageName
protected String getImplPackageName()
Returns the value that was specified by the configuration directive
"ImplPackage", or the default if none was specified.
getJavaOutputDir
protected String getJavaOutputDir()
Returns the value that was specified by the configuration directive
"JavaOutputDir", or the default if none was specified.
getJavaPackageName
protected String getJavaPackageName()
Returns the value that was specified by the configuration directive
"Package", or the default if none was specified.
javaImplWriter
protected PrintWriter javaImplWriter()
javaWriter
protected PrintWriter javaWriter()
layoutStruct
public void layoutStruct(net.java.games.gluegen.cgram.types.CompoundType t)
throws Exception
- layoutStruct in interface GlueEmitter
openFile
protected PrintWriter openFile(String filename)
throws IOException