block_end_codeFragment.xsl
Weaving Rule that weaves a code fragment at the end of a block.
- srcML element:
src:block - advice type:
end - codeModifier type:
codeFragment
Example
int foo() {
printf("Hello");
}
Code Modifier
<codeModifier type="codeFragment">
<text>printf("Hello World")</text>
</codeModifier>Modified Code
int foo() {
printf("Hello");
printf("Hello World");
}
Examples in AspectX Test Suite
- AddMultiLineAtEnd
- AddSingleLineAtBeginAndEnd
- AddSingleLineAtEnd
CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH
Match Templates Summary
src:block[ax:advice[@type='end' and position() = 1]/ax:codeModifier[@type='codeFragment']] (mode: weaving) - source
Calls named template addAtEndOfBlock provided by XWeaver
Match Templates Detail
src:block[ax:advice[@type='end' and position() = 1]/ax:codeModifier[@type='codeFragment']] (mode: weaving) - source
Calls named template addAtEndOfBlock provided by XWeaver