Structure
ATLTypeLiteralExpression
Represents type literal expressions in ATL/OCL.
struct ATLTypeLiteralExpression
Overview
Type literals represent references to types that can be used in operations like oclIsKindOf() or as generic type parameters. They support both simple types and metamodel-qualified types.
Overview
Type literals can represent:
-
Simple types:
String,Integer,Boolean -
Metamodel-qualified types:
Class!Class,UML!Package -
Generic types:
Sequence(Integer),Set(String)
Example Usage
// Simple type literal
let stringType = ATLTypeLiteralExpression(typeName: "String")
// Metamodel-qualified type literal
let classType = ATLTypeLiteralExpression(typeName: "Class!Class")
// Generic type literal
let seqType = ATLTypeLiteralExpression(typeName: "Sequence(Integer)")
Topics
Operators
?
Initializers
?
init(typeName:)
Creates a new type literal expression.
Instance Properties
V
typeName
The type name represented by this expression.
Instance Methods
F
evaluate(in:)
Evaluates the expression within the specified execution context.