<
aspect xmlns:src="
http://www.sdml.info/srcML/src"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns="
http://control.ee.ethz.ch/XWeaver/AspectX"
xsi:schemaLocation="
http://control.ee.ethz.ch/XWeaver/AspectX ../../../../src/xsd/aspectX.xsd"
name="
ReplaceComment">
<
description>
This aspect tests weaving rule <
code>
comment_replace_codeFragment</
code>
.
This weaving rule is used for debuging purposes.
<
author>
I. Birrer</
author>
</
description>
<
advice type="
replace"
name="
replaceComment">
<
description>
All comments that contain substrin '@trace' are replaced
by code <
code>
printf( "Trace" );</
code>
.
</
description>
<
pointcut type="
src:comment"
constraint="
contains(.,'@trace')" />
<
codeModifier type="
codeFragment">
<
text>
printf( "Trace" );</
text></
codeModifier>
</
advice>
</
aspect>
v