This is an old revision of the document!
Pointcuts: Matching Sequences
While the aspect definition in the previous example appropriately modularizes the new feature, it is a typical example of a stateful aspect, implemented with book-keeping code (the times
variable in the pointcut). Recognizing this fact, we now present an alternative implementation that uses a general-purpose trace
PCD for matching sequences of events.
The implementation follows:
AspectScript permits to expose context information to either the advice or other pointcuts, a pointcut can take as optional parameter an environment, and define new bindings in it. Using this environments, we can match a sequence of removeTag invocations happening in a 10 seconds interval. The implementation follows: See the code or example