examples:example2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
examples:example2 [2009/11/06 20:19]
aspectscript
examples:example2 [2009/11/06 20:42] (current)
aspectscript
Line 3: Line 3:
 While the aspect definition in the [[examples/example1|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'' While the aspect definition in the [[examples/example1|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// PCD for matching //sequences of events//
- \\       +\\        
 <html> <html>
 <link href="/aspectscript/external/aspectscript/paperExamples/style.css" rel="stylesheet" type="text/css"/> <link href="/aspectscript/external/aspectscript/paperExamples/style.css" rel="stylesheet" type="text/css"/>
Line 10: Line 11:
    <iframe id="example1" src="/aspectscript/external/aspectscript/paperExamples/example2-1" width="810" height="470"></iframe>        <iframe id="example1" src="/aspectscript/external/aspectscript/paperExamples/example2-1" width="810" height="470"></iframe>    
     <iframe id="code1" style="display:none" src="/aspectscript/external/aspectscript/paperExamples/example2-1/script.js" width="810" height="470"></iframe>     <iframe id="code1" style="display:none" src="/aspectscript/external/aspectscript/paperExamples/example2-1/script.js" width="810" height="470"></iframe>
-   <a id="button" class="button" onclick="toggle('code1','example1')"> <span>Toggle between the code or example </span></a>+   <a id="button" class="button" onclick="toggle('code1','example1')"> <span>Toggle between the code and example </span></a>
 </html> </html>
  
-\\ 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 environment, we can match a sequence of //removeTag// invocations happening in a 10 seconds interval. The following window uses of the "trace" PCD with an environment:+\\ 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 environment, we can match a sequence of //removeTag// invocations happening in a 10 seconds interval. The following window uses the "trace" PCD with an environment:
  
 <html>  <html> 
    <iframe id="example2" src="/aspectscript/external/aspectscript/paperExamples/example2-2" width="810" height="470"></iframe>        <iframe id="example2" src="/aspectscript/external/aspectscript/paperExamples/example2-2" width="810" height="470"></iframe>    
     <iframe id="code2" style="display:none" src="/aspectscript/external/aspectscript/paperExamples/example2-2/script.js" width="810" height="470"></iframe>     <iframe id="code2" style="display:none" src="/aspectscript/external/aspectscript/paperExamples/example2-2/script.js" width="810" height="470"></iframe>
-   <a id="button" class="button" onclick="toggle('code2','example2')"> <span>Toggle between the code or example </span></a>+   <a id="button" class="button" onclick="toggle('code2','example2')"> <span>Toggle between the code and example </span></a>
 </html> </html>
  
  
  
  • examples/example2.1257538774.txt.gz
  • Last modified: 2009/11/06 20:19
  • by aspectscript