Structure
ATLExpressionXMISerializer
Serializes ATL/OCL expressions to Eclipse ATL XMI format.
struct ATLExpressionXMISerializer
Overview
This serializer converts expression trees into the standard Eclipse ATL XMI representation, following the OCL metamodel structure defined in the ATL specification.
Expression Types Supported
-
Literals: Integer, string, boolean, and null literals
-
Variables: Variable references
-
Navigation: Property and feature navigation
-
Operations: Binary, unary, and method call operations
-
Collections: Collection literals and operations
-
Control Flow: Conditional (if-then-else) expressions
-
Advanced: Let expressions, lambda expressions, iterate expressions
XMI Format
Expressions are serialized with xsi:type attributes to distinguish types:
<expression xsi:type="ocl:VariableExp" varName="sourceElement"/>
<expression xsi:type="ocl:OperationCallExp" operationName="concat">
<source xsi:type="ocl:VariableExp" varName="firstName"/>
<arguments xsi:type="ocl:StringExp" stringSymbol="..."/>
</expression>
Topics
Initializers
?
init()
Creates a new expression XMI serializer.
Instance Methods
F
serialize(_:indent:)
Serializes an ATL expression to XMI format.