class_add_accessModifierBlock.xsl
Weaving Rule that add an access modifer block to a class.
- srcML element:
src:class - advice type:
add - codeModifier type:
accessModifierBlock
Example 1
Base Code
class Foo {
}
Code Modifier
<codeModifier type="accessModifierBlock">
<accessModifierBlock type="public"/>
</codeModifier>Modified Code
class Foo {
public:
}
Examples in AspectX Test Suite
- AddModifiers
CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH
Match Templates Summary
Template for the function block
src:class[ax:advice[@type='add' and position() = 1]/ax:codeModifier[@type='accessModifierBlock']] (mode: weaving) - source
Apply tempates with mode
to all (excludig advice elements) child elements
Match Templates Detail
Default copy template
Parameters:
advice -
Template for the function block
Parameters:
node-set advice - The advice element which will be used for weaving the function.
src:class[ax:advice[@type='add' and position() = 1]/ax:codeModifier[@type='accessModifierBlock']] (mode: weaving) - source
Apply tempates with mode
to all (excludig advice elements) child elements