Package com.jogamp.gluegen
Class DebugEmitter
java.lang.Object
com.jogamp.gluegen.DebugEmitter
- All Implemented Interfaces:
GlueEmitter
Debug emitter which prints the parsing results to standard output.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbeginEmission(GlueEmitterControls controls) Begin the emission of glue code.voidbeginFunctions(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type, Type> canonMap) voidBegins the process of computing field offsets and type sizes for the structs to be emitted.voidbeginStructs(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type, Type> canonMap) protected JavaConfigurationCreate the object that will read and store configuration information for this JavaEmitter.voidemitDefine(ConstantDefinition def, String optionalComment) emitFunctions(List<FunctionSymbol> originalCFunctions) Emit glue code for the list of FunctionSymbols.voidvoidemitStruct(CompoundType t, Type typedefType) Emit glue code for the given CompoundType.voidvoidFinish the emission of glue code.voidvoidFinishes the struct layout process.voidvoidLays out one struct which will be emitted later.voidreadConfigurationFile(String filename)
-
Field Details
-
cfg
-
-
Constructor Details
-
DebugEmitter
public DebugEmitter()
-
-
Method Details
-
readConfigurationFile
- Specified by:
readConfigurationFilein interfaceGlueEmitter- Throws:
IOException
-
getConfiguration
- Specified by:
getConfigurationin interfaceGlueEmitter
-
beginEmission
Description copied from interface:GlueEmitterBegin the emission of glue code. This might include opening files, emitting class headers, etc.- Specified by:
beginEmissionin interfaceGlueEmitter
-
endEmission
public void endEmission()Description copied from interface:GlueEmitterFinish the emission of glue code. This might include closing files, closing open class definitions, etc.- Specified by:
endEmissionin interfaceGlueEmitter
-
beginDefines
public void beginDefines()- Specified by:
beginDefinesin interfaceGlueEmitter
-
emitDefine
- Specified by:
emitDefinein interfaceGlueEmitteroptionalComment- If optionalComment is non-null, the emitter can emit that string as a comment providing extra information about the define.
-
endDefines
public void endDefines()- Specified by:
endDefinesin interfaceGlueEmitter
-
beginFunctions
public void beginFunctions(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type, Type> canonMap) - Specified by:
beginFunctionsin interfaceGlueEmitter
-
emitFunctions
public Iterator<FunctionSymbol> emitFunctions(List<FunctionSymbol> originalCFunctions) throws Exception Description copied from interface:GlueEmitterEmit glue code for the list of FunctionSymbols.- Specified by:
emitFunctionsin interfaceGlueEmitter- Throws:
Exception
-
emitSingleFunction
-
endFunctions
public void endFunctions()- Specified by:
endFunctionsin interfaceGlueEmitter
-
beginStructLayout
Description copied from interface:GlueEmitterBegins the process of computing field offsets and type sizes for the structs to be emitted.- Specified by:
beginStructLayoutin interfaceGlueEmitter- Throws:
Exception
-
layoutStruct
Description copied from interface:GlueEmitterLays out one struct which will be emitted later.- Specified by:
layoutStructin interfaceGlueEmitter- Throws:
Exception
-
endStructLayout
Description copied from interface:GlueEmitterFinishes the struct layout process.- Specified by:
endStructLayoutin interfaceGlueEmitter- Throws:
Exception
-
beginStructs
public void beginStructs(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type, Type> canonMap) - Specified by:
beginStructsin interfaceGlueEmitter
-
emitStruct
Description copied from interface:GlueEmitterEmit glue code for the given CompoundType. typedefType is provided when the CompoundType (e.g. "struct foo_t") has not been typedefed to anything but the type of "pointer to struct foo_t" has (e.g. "typedef struct foo_t {} *Foo"); in this case typedefType would be set to pointer type Foo.- Specified by:
emitStructin interfaceGlueEmitter
-
endStructs
public void endStructs()- Specified by:
endStructsin interfaceGlueEmitter
-
createConfig
Create the object that will read and store configuration information for this JavaEmitter.
-