<
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="
Bug_00000144">
<
description>
This advice tests the bug reported through our bug reporting system as the
issue number 144. See
<
a href="
http://control.ee.ethz.ch/~ceg/mantis/view.php?id=144">
Mantis</
a>
<
author>
I. Birrer</
author>
</
description>
<
pointcut name="
initializerListOfTest"
type="
src:member_list"
constraint="
parent::src:constructor/src:name = 'Test::Test'">
<
description>
Points to list of initializers of constructors of the class <
code>
Test</
code>
.
</
description>
</
pointcut>
<
pointcut name="
conctructorsOfTest"
type="
src:constructor"
constraint="
src:name = 'Test::Test'">
<
description>
Points to the constructor of class <
code>
Test</
code>
.
</
description>
</
pointcut>
<
advice name="
Add_B_CInitilializer"
type="
add">
<
description>
Adds two initializers at the end of the existing list of initializers.
</
description>
<
pointcutRef ref="
initializerListOfTest"
type="
src:member_list" />
<
codeModifier type="
initializer">
<
text>
_b(200)</
text>
</
codeModifier>
<
codeModifier type="
initializer">
<
text>
_c(300)</
text>
</
codeModifier>
</
advice>
<
advice name="
Add_DInitilializer"
type="
add">
<
description>
Inserts initializer to the constructor.
</
description>
<
pointcutRef ref="
conctructorsOfTest"
type="
src:constructor" />
<
codeModifier type="
initializer">
<
text>
_d(400)</
text>
</
codeModifier>
</
advice>
</
aspect>
v