return_replace_codeFragment.xsl
Replaces a return statement with a code fragment.
- srcML element:
src:return - advice type:
replace - codeModifier type:
codeFragment
Examples in AspectX Sample Library
- TraceMethodLeave
Examples in AspectX Test Suite
- Bug_00000112
CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH
Match Templates Summary
src:return[ax:advice[@type='replace' and position() = 1]/ax:codeModifier[@type='codeFragment']] (mode: weaving) - source
Replaces a return statement with a code fragment
Match Templates Detail
src:return[ax:advice[@type='replace' and position() = 1]/ax:codeModifier[@type='codeFragment']] (mode: weaving) - source
Replaces a return statement with a code fragment
If the return element contains other advices, these must be handled first. This is
achieved by moving the replace advice to the end of the pending advices.