[aspectc-user] Pointcut expressions for any line of code; that vs target

Jannis Stoppe jstoppe at informatik.uni-bremen.de
Wed Jul 30 18:41:17 CEST 2014


Currently digging my way through AspectC++, everything works nicely so
far, but some questions come up that I can't seem to answer myself...
Any help would be appreciated.

  * Can I match anything besides function calls and type names? E.g. I
    could use the type matching expression to first replace a field with
    according get and set methods and then replace all expressions in
    the code that read or write that field with the according calls? How
    would I match all expressions that access that field? Is there
    something like regex matching like in
  * What is the difference between /that/ and /target/? Using
    /tjp->that()/ from within an aspect that was woven in via an
    execution advice I get a reference to the object that would usually
    be /this/ inside the function that is currently being executed,
    correct? What do I get with /tjp->target()/ as opposed to that?

Thanks in advance and best regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aspectc.org/pipermail/aspectc-user/attachments/20140730/4042c97e/attachment.html>

More information about the aspectc-user mailing list