Hi,
I have a question about the matching semantics that tracematch supports.
given a really a tracematch, e.g. the simple one given below, which is
matching two subsequent calls to save: When two 'save' are detected, the
tracematch gives a match. However, when a third 'save' is detected, a new
match is given (rather than waiting for a fourth).
Is this the intended semantics of tracematches?
public aspect MatchTwoSaves {
pointcut save(Editor e): target(e) && call (* Editor.save(..))
tracematch (Editor e) {
sym save after returning: save(e);
save save {
// we got a save+save match, now do something with it
}
}
}
Best regards,
Jon Oldevik
Received on Thu Sep 11 2008 - 04:33:31 BST
This archive was generated by hypermail 2.2.0 : Thu Sep 11 2008 - 11:20:11 BST