CStructAnnotationProcessor.AnnotationProcessorJavaStructEmitter, DebugEmitter, JavaEmitter, ProcAddressEmitterpublic interface GlueEmitter
| Modifier and Type | Method | Description |
|---|---|---|
void |
beginDefines() |
|
void |
beginEmission(GlueEmitterControls controls) |
Begin the emission of glue code.
|
void |
beginFunctions(TypeDictionary typedefDictionary,
TypeDictionary structDictionary,
Map<Type,Type> canonMap) |
|
void |
beginStructLayout() |
Begins the process of computing field offsets and type sizes for
the structs to be emitted.
|
void |
beginStructs(TypeDictionary typedefDictionary,
TypeDictionary structDictionary,
Map<Type,Type> canonMap) |
|
void |
emitDefine(ConstantDefinition def,
String optionalComment) |
|
Iterator<FunctionSymbol> |
emitFunctions(List<FunctionSymbol> cFunctions) |
Emit glue code for the list of FunctionSymbols.
|
void |
emitStruct(CompoundType t,
Type typedefType) |
Emit glue code for the given CompoundType.
|
void |
endDefines() |
|
void |
endEmission() |
Finish the emission of glue code.
|
void |
endFunctions() |
|
void |
endStructLayout() |
Finishes the struct layout process.
|
void |
endStructs() |
|
JavaConfiguration |
getConfiguration() |
|
void |
layoutStruct(CompoundType t) |
Lays out one struct which will be emitted later.
|
void |
readConfigurationFile(String filename) |
void readConfigurationFile(String filename) throws Exception
ExceptionJavaConfiguration getConfiguration()
void beginEmission(GlueEmitterControls controls) throws Exception
Exceptionvoid endEmission()
throws Exception
Exceptionvoid emitDefine(ConstantDefinition def, String optionalComment) throws Exception
optionalComment - If optionalComment is non-null, the emitter can
emit that string as a comment providing extra information about the
define.Exceptionvoid beginFunctions(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type,Type> canonMap) throws Exception
ExceptionIterator<FunctionSymbol> emitFunctions(List<FunctionSymbol> cFunctions) throws Exception
Exceptionvoid beginStructLayout()
throws Exception
Exceptionvoid layoutStruct(CompoundType t) throws Exception
Exceptionvoid endStructLayout()
throws Exception
Exceptionvoid beginStructs(TypeDictionary typedefDictionary, TypeDictionary structDictionary, Map<Type,Type> canonMap) throws Exception
Exceptionvoid emitStruct(CompoundType t, Type typedefType) throws Exception
Exception