Structure
ATLExpressionXMIParser
Parses ATL/OCL expressions from Eclipse ATL XMI format.
struct ATLExpressionXMIParser
Overview
This parser reconstructs expression trees from the standard Eclipse ATL XMI representation, following the OCL metamodel structure.
Supported Expression Types
-
Literals: Integer, Real, String, Boolean, Undefined
-
Variables: Variable references
-
Navigation: Property and feature navigation
-
Operations: Binary, unary, and method call operations
-
Collections: Collection literals and iterator operations
-
Control Flow: Conditional (if-then-else) expressions
-
Advanced: Let expressions, lambda expressions, iterate expressions, tuples
XMI Format
Expressions are identified by xsi:type attributes:
<expression xsi:type="ocl:VariableExp" varName="x"/>
<expression xsi:type="ocl:IntegerExp" integerSymbol="42"/>
Architecture
This parser uses a recursive descent approach with DOM-based XML parsing. Each expression type has a dedicated parsing method, eliminating shared state and naturally handling arbitrary nesting through recursion.
Topics
Initializers
Creates a new expression XMI parser.
Instance Methods
Parses an expression from XMI format.