Class | RGen::Util::PatternMatcher |
In: |
lib/rgen/util/pattern_matcher.rb
|
Parent: | Object |
A PatternMatcher can be used to find, insert and remove patterns on a given model.
A pattern is specified by means of a block passed to the add_pattern method. The block must take an Environment as first parameter and at least one model element as connection point as further parameter. The pattern matches if it can be found in a given environment and connected to the given connection point elements.
Match | = | Struct.new(:root, :elements, :bound_values) |
TempEnv | = | RGen::Environment.new |
CheckLater | = | Struct.new(:feature, :lazy, :value) |
debug | [RW] |