General code unit (a generated C or Java source file), covering multiple FunctionEmitter allowing to unify output, decoration and dynamic helper code injection per unit.
More...
General code unit (a generated C or Java source file), covering multiple FunctionEmitter allowing to unify output, decoration and dynamic helper code injection per unit.
Definition at line 42 of file CodeUnit.java.
◆ CodeUnit()
| com.jogamp.gluegen.CodeUnit.CodeUnit |
( |
final String |
filename, |
|
|
final Object |
generator |
|
) |
| throws IOException |
|
protected |
- Parameters
-
| filename | the class's full filename to open w/ write access |
| generator | informal optional object that is creating this unit, used to be mentioned in a warning message if not null. |
- Exceptions
-
Definition at line 52 of file CodeUnit.java.
◆ addTailCode()
| boolean com.jogamp.gluegen.CodeUnit.addTailCode |
( |
final String |
c | ) |
|
Add a tail code to this unit.
- Parameters
-
| c | the code to be added to the tail of this code unit |
- Returns
- true if the
tailCode set did not already contain the specified code c
Definition at line 71 of file CodeUnit.java.
◆ close()
| void com.jogamp.gluegen.CodeUnit.close |
( |
| ) |
|
◆ emit()
| void com.jogamp.gluegen.CodeUnit.emit |
( |
final String |
s | ) |
|
◆ emitf()
| void com.jogamp.gluegen.CodeUnit.emitf |
( |
final String |
s, |
|
|
final Object... |
args |
|
) |
| |
◆ emitln() [1/2]
| void com.jogamp.gluegen.CodeUnit.emitln |
( |
| ) |
|
◆ emitln() [2/2]
| void com.jogamp.gluegen.CodeUnit.emitln |
( |
final String |
s | ) |
|
◆ emitTailCode()
| void com.jogamp.gluegen.CodeUnit.emitTailCode |
( |
| ) |
|
◆ toString()
| String com.jogamp.gluegen.CodeUnit.toString |
( |
| ) |
|
◆ filename
| final String com.jogamp.gluegen.CodeUnit.filename |
◆ output
| final PrintWriter com.jogamp.gluegen.CodeUnit.output |
The documentation for this class was generated from the following file: