block_begin_codeFragment.xsl

Weaving Rule that weaves a code fragment at the beginning of a block.
  • srcML element: src:block
  • advice type: begin
  • codeModifier type: codeFragment

Example 1

Base Code

int foo() {
  printf("Hello");
}

Code Modifier

<codeModifier type="codeFragment">
  <text>printf("Hello World")</text>
</codeModifier>

Modified Code

int foo() {
  printf("Hello World");
  printf("Hello");
}

Examples in AspectX Sample Library

Examples in AspectX Test Suite

CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH

Match Templates Summary

Apply tempates with mode to all (excludig advice elements) child elements

Match Templates Detail

Apply tempates with mode to all (excludig advice elements) child elements