public final class XmlAstWriter
extends java.lang.Object
implements zserio.ast.ZserioAstVisitor
| Constructor and Description |
|---|
XmlAstWriter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
save(java.io.File xmlFile)
Saves AST in the XML format to the file.
|
void |
visitArrayType(zserio.ast.ArrayType arrayType) |
void |
visitBitmaskType(zserio.ast.BitmaskType bitmaskType) |
void |
visitBitmaskValue(zserio.ast.BitmaskValue bitmaskValue) |
void |
visitBooleanType(zserio.ast.BooleanType booleanType) |
void |
visitBytesType(zserio.ast.BytesType bytesType) |
void |
visitChoiceCase(zserio.ast.ChoiceCase choiceCase) |
void |
visitChoiceCaseExpression(zserio.ast.ChoiceCaseExpression choiceCaseExpression) |
void |
visitChoiceDefault(zserio.ast.ChoiceDefault choiceDefault) |
void |
visitChoiceType(zserio.ast.ChoiceType choiceType) |
void |
visitCompatibilityVersion(zserio.ast.CompatibilityVersion compatibilityVersion) |
void |
visitConstant(zserio.ast.Constant constant) |
void |
visitDocCommentClassic(zserio.ast.DocCommentClassic docComment) |
void |
visitDocCommentMarkdown(zserio.ast.DocCommentMarkdown docComment) |
void |
visitDocElement(zserio.ast.DocElement docElement) |
void |
visitDocLine(zserio.ast.DocLine docLine) |
void |
visitDocLineElement(zserio.ast.DocLineElement docLineElement) |
void |
visitDocMultiline(zserio.ast.DocMultiline docMultiline) |
void |
visitDocParagraph(zserio.ast.DocParagraph docParagraph) |
void |
visitDocTagDeprecated(zserio.ast.DocTagDeprecated docTagDeprecated) |
void |
visitDocTagParam(zserio.ast.DocTagParam docTagParam) |
void |
visitDocTagSee(zserio.ast.DocTagSee docTagSee) |
void |
visitDocTagTodo(zserio.ast.DocTagTodo docTagTodo) |
void |
visitDocText(zserio.ast.DocText docText) |
void |
visitDynamicBitFieldType(zserio.ast.DynamicBitFieldType bitFieldType) |
void |
visitEnumItem(zserio.ast.EnumItem enumItem) |
void |
visitEnumType(zserio.ast.EnumType enumType) |
void |
visitExpression(zserio.ast.Expression expression) |
void |
visitExternType(zserio.ast.ExternType externType) |
void |
visitField(zserio.ast.Field field) |
void |
visitFixedBitFieldType(zserio.ast.FixedBitFieldType bitFieldType) |
void |
visitFloatType(zserio.ast.FloatType floatType) |
void |
visitFunction(zserio.ast.Function function) |
void |
visitImport(zserio.ast.Import unitImport) |
void |
visitInstantiateType(zserio.ast.InstantiateType instantiateType) |
void |
visitPackage(zserio.ast.Package unitPackage) |
void |
visitParameter(zserio.ast.Parameter parameter) |
void |
visitPubsubMessage(zserio.ast.PubsubMessage pubsubMessage) |
void |
visitPubsubType(zserio.ast.PubsubType pubsubType) |
void |
visitRoot(zserio.ast.Root root) |
void |
visitRule(zserio.ast.Rule rule) |
void |
visitRuleGroup(zserio.ast.RuleGroup ruleGroup) |
void |
visitServiceMethod(zserio.ast.ServiceMethod serviceMethod) |
void |
visitServiceType(zserio.ast.ServiceType serviceType) |
void |
visitSqlConstraint(zserio.ast.SqlConstraint sqlConstraint) |
void |
visitSqlDatabaseType(zserio.ast.SqlDatabaseType sqlDatabaseType) |
void |
visitSqlTableType(zserio.ast.SqlTableType sqlTableType) |
void |
visitStdIntegerType(zserio.ast.StdIntegerType stdIntegerType) |
void |
visitStringType(zserio.ast.StringType stringType) |
void |
visitStructureType(zserio.ast.StructureType structureType) |
void |
visitSubtype(zserio.ast.Subtype subtype) |
void |
visitTemplateArgument(zserio.ast.TemplateArgument templateArgument) |
void |
visitTemplateParameter(zserio.ast.TemplateParameter templateParameter) |
void |
visitTypeInstantiation(zserio.ast.TypeInstantiation typeInstantiation) |
void |
visitTypeReference(zserio.ast.TypeReference typeReference) |
void |
visitUnionType(zserio.ast.UnionType unionType) |
void |
visitVarIntegerType(zserio.ast.VarIntegerType varIntegerType) |
public XmlAstWriter()
throws zserio.extension.common.ZserioExtensionException
zserio.extension.common.ZserioExtensionException - Throws in case of XML parser configuration error.public void save(java.io.File xmlFile)
throws zserio.extension.common.ZserioExtensionException
xmlFile - XML file where to write whole AST.zserio.extension.common.ZserioExtensionException - Throws in case of XML transformer error.public void visitRoot(zserio.ast.Root root)
visitRoot in interface zserio.ast.ZserioAstVisitorpublic void visitPackage(zserio.ast.Package unitPackage)
visitPackage in interface zserio.ast.ZserioAstVisitorpublic void visitCompatibilityVersion(zserio.ast.CompatibilityVersion compatibilityVersion)
visitCompatibilityVersion in interface zserio.ast.ZserioAstVisitorpublic void visitImport(zserio.ast.Import unitImport)
visitImport in interface zserio.ast.ZserioAstVisitorpublic void visitConstant(zserio.ast.Constant constant)
visitConstant in interface zserio.ast.ZserioAstVisitorpublic void visitSubtype(zserio.ast.Subtype subtype)
visitSubtype in interface zserio.ast.ZserioAstVisitorpublic void visitStructureType(zserio.ast.StructureType structureType)
visitStructureType in interface zserio.ast.ZserioAstVisitorpublic void visitChoiceType(zserio.ast.ChoiceType choiceType)
visitChoiceType in interface zserio.ast.ZserioAstVisitorpublic void visitUnionType(zserio.ast.UnionType unionType)
visitUnionType in interface zserio.ast.ZserioAstVisitorpublic void visitEnumType(zserio.ast.EnumType enumType)
visitEnumType in interface zserio.ast.ZserioAstVisitorpublic void visitBitmaskType(zserio.ast.BitmaskType bitmaskType)
visitBitmaskType in interface zserio.ast.ZserioAstVisitorpublic void visitSqlTableType(zserio.ast.SqlTableType sqlTableType)
visitSqlTableType in interface zserio.ast.ZserioAstVisitorpublic void visitSqlDatabaseType(zserio.ast.SqlDatabaseType sqlDatabaseType)
visitSqlDatabaseType in interface zserio.ast.ZserioAstVisitorpublic void visitServiceType(zserio.ast.ServiceType serviceType)
visitServiceType in interface zserio.ast.ZserioAstVisitorpublic void visitPubsubType(zserio.ast.PubsubType pubsubType)
visitPubsubType in interface zserio.ast.ZserioAstVisitorpublic void visitRuleGroup(zserio.ast.RuleGroup ruleGroup)
visitRuleGroup in interface zserio.ast.ZserioAstVisitorpublic void visitField(zserio.ast.Field field)
visitField in interface zserio.ast.ZserioAstVisitorpublic void visitChoiceCase(zserio.ast.ChoiceCase choiceCase)
visitChoiceCase in interface zserio.ast.ZserioAstVisitorpublic void visitChoiceCaseExpression(zserio.ast.ChoiceCaseExpression choiceCaseExpression)
visitChoiceCaseExpression in interface zserio.ast.ZserioAstVisitorpublic void visitChoiceDefault(zserio.ast.ChoiceDefault choiceDefault)
visitChoiceDefault in interface zserio.ast.ZserioAstVisitorpublic void visitEnumItem(zserio.ast.EnumItem enumItem)
visitEnumItem in interface zserio.ast.ZserioAstVisitorpublic void visitBitmaskValue(zserio.ast.BitmaskValue bitmaskValue)
visitBitmaskValue in interface zserio.ast.ZserioAstVisitorpublic void visitSqlConstraint(zserio.ast.SqlConstraint sqlConstraint)
visitSqlConstraint in interface zserio.ast.ZserioAstVisitorpublic void visitServiceMethod(zserio.ast.ServiceMethod serviceMethod)
visitServiceMethod in interface zserio.ast.ZserioAstVisitorpublic void visitPubsubMessage(zserio.ast.PubsubMessage pubsubMessage)
visitPubsubMessage in interface zserio.ast.ZserioAstVisitorpublic void visitRule(zserio.ast.Rule rule)
visitRule in interface zserio.ast.ZserioAstVisitorpublic void visitFunction(zserio.ast.Function function)
visitFunction in interface zserio.ast.ZserioAstVisitorpublic void visitParameter(zserio.ast.Parameter parameter)
visitParameter in interface zserio.ast.ZserioAstVisitorpublic void visitExpression(zserio.ast.Expression expression)
visitExpression in interface zserio.ast.ZserioAstVisitorpublic void visitTypeInstantiation(zserio.ast.TypeInstantiation typeInstantiation)
visitTypeInstantiation in interface zserio.ast.ZserioAstVisitorpublic void visitTypeReference(zserio.ast.TypeReference typeReference)
visitTypeReference in interface zserio.ast.ZserioAstVisitorpublic void visitArrayType(zserio.ast.ArrayType arrayType)
visitArrayType in interface zserio.ast.ZserioAstVisitorpublic void visitStdIntegerType(zserio.ast.StdIntegerType stdIntegerType)
visitStdIntegerType in interface zserio.ast.ZserioAstVisitorpublic void visitVarIntegerType(zserio.ast.VarIntegerType varIntegerType)
visitVarIntegerType in interface zserio.ast.ZserioAstVisitorpublic void visitFixedBitFieldType(zserio.ast.FixedBitFieldType bitFieldType)
visitFixedBitFieldType in interface zserio.ast.ZserioAstVisitorpublic void visitDynamicBitFieldType(zserio.ast.DynamicBitFieldType bitFieldType)
visitDynamicBitFieldType in interface zserio.ast.ZserioAstVisitorpublic void visitBooleanType(zserio.ast.BooleanType booleanType)
visitBooleanType in interface zserio.ast.ZserioAstVisitorpublic void visitBytesType(zserio.ast.BytesType bytesType)
visitBytesType in interface zserio.ast.ZserioAstVisitorpublic void visitStringType(zserio.ast.StringType stringType)
visitStringType in interface zserio.ast.ZserioAstVisitorpublic void visitFloatType(zserio.ast.FloatType floatType)
visitFloatType in interface zserio.ast.ZserioAstVisitorpublic void visitExternType(zserio.ast.ExternType externType)
visitExternType in interface zserio.ast.ZserioAstVisitorpublic void visitTemplateParameter(zserio.ast.TemplateParameter templateParameter)
visitTemplateParameter in interface zserio.ast.ZserioAstVisitorpublic void visitTemplateArgument(zserio.ast.TemplateArgument templateArgument)
visitTemplateArgument in interface zserio.ast.ZserioAstVisitorpublic void visitInstantiateType(zserio.ast.InstantiateType instantiateType)
visitInstantiateType in interface zserio.ast.ZserioAstVisitorpublic void visitDocCommentClassic(zserio.ast.DocCommentClassic docComment)
visitDocCommentClassic in interface zserio.ast.ZserioAstVisitorpublic void visitDocCommentMarkdown(zserio.ast.DocCommentMarkdown docComment)
visitDocCommentMarkdown in interface zserio.ast.ZserioAstVisitorpublic void visitDocParagraph(zserio.ast.DocParagraph docParagraph)
visitDocParagraph in interface zserio.ast.ZserioAstVisitorpublic void visitDocElement(zserio.ast.DocElement docElement)
visitDocElement in interface zserio.ast.ZserioAstVisitorpublic void visitDocMultiline(zserio.ast.DocMultiline docMultiline)
visitDocMultiline in interface zserio.ast.ZserioAstVisitorpublic void visitDocTagSee(zserio.ast.DocTagSee docTagSee)
visitDocTagSee in interface zserio.ast.ZserioAstVisitorpublic void visitDocTagTodo(zserio.ast.DocTagTodo docTagTodo)
visitDocTagTodo in interface zserio.ast.ZserioAstVisitorpublic void visitDocTagParam(zserio.ast.DocTagParam docTagParam)
visitDocTagParam in interface zserio.ast.ZserioAstVisitorpublic void visitDocTagDeprecated(zserio.ast.DocTagDeprecated docTagDeprecated)
visitDocTagDeprecated in interface zserio.ast.ZserioAstVisitorpublic void visitDocLine(zserio.ast.DocLine docLine)
visitDocLine in interface zserio.ast.ZserioAstVisitorpublic void visitDocLineElement(zserio.ast.DocLineElement docLineElement)
visitDocLineElement in interface zserio.ast.ZserioAstVisitorpublic void visitDocText(zserio.ast.DocText docText)
visitDocText in interface zserio.ast.ZserioAstVisitorLast updated 2024-10-29 12:55:46