aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/DebugEmitter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/gluegen/DebugEmitter.java')
-rw-r--r--src/java/com/jogamp/gluegen/DebugEmitter.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/java/com/jogamp/gluegen/DebugEmitter.java b/src/java/com/jogamp/gluegen/DebugEmitter.java
index d5fab6e..781188e 100644
--- a/src/java/com/jogamp/gluegen/DebugEmitter.java
+++ b/src/java/com/jogamp/gluegen/DebugEmitter.java
@@ -48,26 +48,33 @@ import com.jogamp.gluegen.cgram.types.*;
public class DebugEmitter implements GlueEmitter {
+ @Override
public void readConfigurationFile(String filename) {}
+ @Override
public void beginEmission(GlueEmitterControls controls) {
System.out.println("----- BEGIN EMISSION OF GLUE CODE -----");
}
+ @Override
public void endEmission() {
System.out.println("----- END EMISSION OF GLUE CODE -----");
}
+ @Override
public void beginDefines() {}
+ @Override
public void emitDefine(ConstantDefinition def, String optionalComment) {
String name = def.getName();
String value = def.getValue();
System.out.println("#define " + name + " " + value +
(optionalComment != null ? ("// " + optionalComment) : ""));
}
+ @Override
public void endDefines() {}
+ @Override
public void beginFunctions(TypeDictionary typedefDictionary,
TypeDictionary structDictionary,
Map<Type, Type> canonMap) {
@@ -78,6 +85,7 @@ public class DebugEmitter implements GlueEmitter {
}
}
+ @Override
public Iterator<FunctionSymbol> emitFunctions(List<FunctionSymbol> originalCFunctions) throws Exception {
for (FunctionSymbol sym : originalCFunctions) {
emitSingleFunction(sym);
@@ -88,15 +96,21 @@ public class DebugEmitter implements GlueEmitter {
System.out.println(sym);
System.out.println(" -> " + sym.toString());
}
+ @Override
public void endFunctions() {}
+ @Override
public void beginStructLayout() throws Exception {}
+ @Override
public void layoutStruct(CompoundType t) throws Exception {}
+ @Override
public void endStructLayout() throws Exception {}
+ @Override
public void beginStructs(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type, Type> canonMap) {
}
+ @Override
public void emitStruct(CompoundType t, String alternateName) {
String name = t.getName();
if (name == null && alternateName != null) {
@@ -106,5 +120,6 @@ public class DebugEmitter implements GlueEmitter {
System.out.println("Referenced type \"" + name + "\"");
}
+ @Override
public void endStructs() {}
}