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