unit_add_include.xsl
Weaving Rule that adds an include statement to a unit.
CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH
Match Templates Summary
Default copy template for adding an include before a class definition
Adds includes before the first class containing a block that
occurs in the source file
src:comment[following-sibling::src:class[1]][last()] (param: node-set advicemode: weaving_unit_add_include_class) - source
If a class has a comment attached the include is added before the comment
Default copy template for adding includes before a function definiton
This template adds the includes before the first function that occurs in the source file
Default copy template for adding includes before an existing include
This template adds the includes before the first include
src:unit[ax:advice[@type='add' and position() = 1]/ax:codeModifier[@type='include']] (mode: weaving) - source
Adds includes to the first possible location of the following choices:
Match Templates Detail
Default copy template for adding an include before a class definition
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
Adds includes before the first class containing a block that
occurs in the source file
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
src:comment[following-sibling::src:class[1]][last()] (param: node-set advicemode: weaving_unit_add_include_class) - source
If a class has a comment attached the include is added before the comment
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
Default copy template for adding includes before a function definiton
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
This template adds the includes before the first function that occurs in the source file
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
Default copy template for adding includes before an existing include
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
This template adds the includes before the first include
Parameters:
node-set advice - The advice element which will be used for weaving the unit.
src:unit[ax:advice[@type='add' and position() = 1]/ax:codeModifier[@type='include']] (mode: weaving) - source
Adds includes to the first possible location of the following choices: