Skip to content

Commit 5c00b16

Browse files
author
aless.hosry
committed
comment MTRecursivePath
1 parent 27e5873 commit 5c00b16

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

MoTion/MTRecursivePath.class.st

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"
2+
MoTion allows to perform Recursive traversal through a '*' operator combined with the Path traversal operator '>'. In a chain of objects, one may know the initial property and the final one, but not know how long the chain of objects is.
3+
```
4+
ClassA % {
5+
#'property1>repeatedProp*' <=> aValue.
6+
}
7+
```
8+
This pattern will match first an instance of `ClassA`, then the object in its property `property1` then it will match a chain of objects all having a property `repeatedProp` and one of them containing the value `aValue`. The match ends with this last object.
9+
"
110
Class {
211
#name : 'MTRecursivePath',
312
#superclass : 'MotionPath',

0 commit comments

Comments
 (0)