* @param aspectDef the aspect definition
*/
private static void handleAdviceWeavingRules(final Element aspectElement,
final AspectDefinition aspectDef) {
for (Iterator it = aspectDef.getAdviceWeavingRules().iterator(); it.hasNext();) {
AdviceWeavingRule weavingRule = (AdviceWeavingRule)it.next();
Element weavingRuleElement = aspectElement.addElement("bind-advice");
weavingRuleElement.addAttribute("pointcut", weavingRule.getExpression());
String cflowExpression = weavingRule.getCFlowExpression();
if (cflowExpression != null) {
weavingRuleElement.addAttribute("cflow", cflowExpression);
}
for (Iterator it2 = weavingRule.getAdviceRefs().iterator(); it2.hasNext();) {
String adviceRef = (String)it2.next();
Element adviceRefElement = weavingRuleElement.addElement("advice-ref");
adviceRefElement.addAttribute("name", adviceRef);
}