public final class StructureEmitter extends DefaultTreeWalker
| Constructor and Description |
|---|
StructureEmitter(OutputFileManager outputFileManager,
CppExtensionParameters cppParameters,
PackedTypesCollector packedTypesCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginPackage(Package pkg)
Called when Package AST node begins.
|
void |
beginStructure(StructureType structureType)
Called when StructureType AST node begins.
|
protected zserio.extension.cpp.TemplateDataContext |
getTemplateDataContext() |
protected boolean |
getWithPubsubCode() |
protected boolean |
getWithServiceCode() |
protected boolean |
getWithSourcesAmalgamation() |
protected boolean |
getWithSqlCode() |
protected void |
processHeaderTemplate(java.lang.String templateName,
java.lang.Object templateData,
PackageName zserioPackageName,
java.lang.String outFileName) |
protected void |
processHeaderTemplate(java.lang.String templateName,
java.lang.Object templateData,
ZserioType zserioType) |
protected void |
processSourceTemplate(java.lang.String templateName,
java.lang.Object templateData,
ZserioType zserioType) |
boolean |
traverseTemplateInstantiations()
Returns whether to traverse template instantiations or just call appropriate TreeWalker's methods
directly for templates.
|
beginBitmask, beginChoice, beginConst, beginEnumeration, beginImport, beginInstantiateType, beginPubsub, beginRoot, beginRuleGroup, beginService, beginSqlDatabase, beginSqlTable, beginSubtype, beginUnion, endPackage, endRootpublic StructureEmitter(OutputFileManager outputFileManager, CppExtensionParameters cppParameters, PackedTypesCollector packedTypesCollector)
public void beginStructure(StructureType structureType) throws ZserioExtensionException
TreeWalkerbeginStructure in interface TreeWalkerbeginStructure in class DefaultTreeWalkerstructureType - Current StructureType AST node.ZserioExtensionException - In case of any internal error of the extension.public boolean traverseTemplateInstantiations()
TreeWalkerpublic void beginPackage(Package pkg) throws ZserioExtensionException
TreeWalkerbeginPackage in interface TreeWalkerbeginPackage in class DefaultTreeWalkerpkg - Current Package AST node.ZserioExtensionException - In case of any internal error of the extension.protected void processSourceTemplate(java.lang.String templateName,
java.lang.Object templateData,
ZserioType zserioType)
throws ZserioExtensionException
ZserioExtensionExceptionprotected void processHeaderTemplate(java.lang.String templateName,
java.lang.Object templateData,
ZserioType zserioType)
throws ZserioExtensionException
ZserioExtensionExceptionprotected void processHeaderTemplate(java.lang.String templateName,
java.lang.Object templateData,
PackageName zserioPackageName,
java.lang.String outFileName)
throws ZserioExtensionException
ZserioExtensionExceptionprotected zserio.extension.cpp.TemplateDataContext getTemplateDataContext()
protected boolean getWithPubsubCode()
protected boolean getWithServiceCode()
protected boolean getWithSourcesAmalgamation()
protected boolean getWithSqlCode()
Last updated 2024-10-29 12:56:13