net.java.games.gluegen

Class DebugEmitter

Implemented Interfaces:
GlueEmitter

public class DebugEmitter
extends java.lang.Object
implements GlueEmitter

Debug emitter which prints the parsing results to standard output.

Method Summary

void
beginDefines()
void
beginEmission(GlueEmitterControls controls)
void
beginFunctions(net.java.games.gluegen.cgram.types.TypeDictionary typedefDictionary, net.java.games.gluegen.cgram.types.TypeDictionary structDictionary, Map canonMap)
void
beginStructLayout()
void
beginStructs(net.java.games.gluegen.cgram.types.TypeDictionary typedefDictionary, net.java.games.gluegen.cgram.types.TypeDictionary structDictionary, Map canonMap)
void
emitDefine(String name, String value, String optionalComment)
Iterator
emitFunctions(List originalCFunctions)
void
emitSingleFunction(net.java.games.gluegen.cgram.types.FunctionSymbol sym)
void
emitStruct(net.java.games.gluegen.cgram.types.CompoundType t, String alternateName)
void
endDefines()
void
endEmission()
void
endFunctions()
void
endStructLayout()
void
endStructs()
void
layoutStruct(net.java.games.gluegen.cgram.types.CompoundType t)
void
readConfigurationFile(String filename)
void
setMachineDescription(net.java.games.gluegen.cgram.types.MachineDescription md)

Method Details

beginDefines

public void beginDefines()
Specified by:
beginDefines in interface GlueEmitter

beginEmission

public void beginEmission(GlueEmitterControls controls)
Specified by:
beginEmission in interface GlueEmitter

beginFunctions

public void beginFunctions(net.java.games.gluegen.cgram.types.TypeDictionary typedefDictionary,
                           net.java.games.gluegen.cgram.types.TypeDictionary structDictionary,
                           Map canonMap)
Specified by:
beginFunctions in interface GlueEmitter

beginStructLayout

public void beginStructLayout()
            throws Exception
Specified by:
beginStructLayout 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)
Specified by:
beginStructs in interface GlueEmitter

emitDefine

public void emitDefine(String name,
                       String value,
                       String optionalComment)
Specified by:
emitDefine in interface GlueEmitter

emitFunctions

public Iterator emitFunctions(List originalCFunctions)
            throws Exception

emitSingleFunction

public void emitSingleFunction(net.java.games.gluegen.cgram.types.FunctionSymbol sym)

emitStruct

public void emitStruct(net.java.games.gluegen.cgram.types.CompoundType t,
                       String alternateName)
Specified by:
emitStruct in interface GlueEmitter

endDefines

public void endDefines()
Specified by:
endDefines in interface GlueEmitter

endEmission

public void endEmission()
Specified by:
endEmission in interface GlueEmitter

endFunctions

public void endFunctions()
Specified by:
endFunctions in interface GlueEmitter

endStructLayout

public void endStructLayout()
            throws Exception
Specified by:
endStructLayout in interface GlueEmitter

endStructs

public void endStructs()
Specified by:
endStructs in interface GlueEmitter

layoutStruct

public void layoutStruct(net.java.games.gluegen.cgram.types.CompoundType t)
            throws Exception
Specified by:
layoutStruct in interface GlueEmitter

readConfigurationFile

public void readConfigurationFile(String filename)
Specified by:
readConfigurationFile in interface GlueEmitter

setMachineDescription

public void setMachineDescription(net.java.games.gluegen.cgram.types.MachineDescription md)
Specified by:
setMachineDescription in interface GlueEmitter