/// <summary> /// define nodes /// </summary> /// <param name="ctx"></param> /// <returns></returns> public bool BuildXPTNode(RulezUnitContext ctx) { // selection Rulez if (ctx.oneRulez() != null && ctx.oneRulez().Count() > 0) { if (ctx.XPTreeNode == null) { ctx.XPTreeNode = new eXPressionTree.Unit(this.Engine); } foreach (OneRulezContext aCtx in ctx.oneRulez()) { ctx.XPTreeNode.Add((IXPTree)aCtx.XPTreeNode); } return(true); } return(false); }
/// <summary> /// define nodes /// </summary> /// <param name="ctx"></param> /// <returns></returns> public bool BuildXPTNode(RulezUnitContext ctx) { // selection Rulez if (ctx.oneRulez() != null && ctx.oneRulez ().Count() > 0) { if (ctx.XPTreeNode == null) ctx.XPTreeNode = new eXPressionTree.Unit(this.Engine); foreach (OneRulezContext aCtx in ctx.oneRulez()) ctx.XPTreeNode.Add((IXPTree)aCtx.XPTreeNode); return true; } return false; }