Structure
ATLSourcePattern
Represents the source pattern of an ATL matched rule.
struct ATLSourcePattern
Overview
Source patterns define the input specification for matched rules, including the type of source elements to match, the variable name for binding within the rule’s scope, and optional guard expressions for conditional matching.
Example Usage
let memberPattern = ATLSourcePattern(
variableName: "sourceMember",
type: "Families!Member",
guard: ageCheckExpression
)
Topics
Operators
?
Initializers
?
init(variableName:type:guard:)
Creates a new ATL source pattern.
Instance Properties
V
guard
The optional guard condition for conditional pattern matching.
V
type
The type of source elements matched by this pattern.
V
variableName
The variable name for binding the matched source element.