Package com.jogamp.gluegen
Class JavaCodeUnit
- java.lang.Object
-
- com.jogamp.gluegen.CodeUnit
-
- com.jogamp.gluegen.JavaCodeUnit
-
public class JavaCodeUnit extends CodeUnit
Java code unit (a generated Java source file), covering multipleFunctionEmitter
allowing to unify output, decoration and dynamic helper code injection per unit.
-
-
Constructor Summary
Constructors Constructor Description JavaCodeUnit(String filename, String packageName, String simpleClassName, Object generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class com.jogamp.gluegen.CodeUnit
addTailCode, close, emit, emitf, emitln, emitln, emitTailCode
-
-
-
-
Constructor Detail
-
JavaCodeUnit
public JavaCodeUnit(String filename, String packageName, String simpleClassName, Object generator) throws IOException
- Parameters:
filename
- the class's full filename to open w/ write accesspackageName
- the package name of the classsimpleClassName
- the simple class name, i.e. w/o package name or c-file basenamegenerator
- informal optional object that is creating this unit, used to be mentioned in a warning message if not null.- Throws:
IOException
-
-