示例#1
0
 //    /**
 //     * the implementation will look at the parameters for
 //     * the function and see if it takes BoundParam
 //     */
 //    public boolean hasVariables() {
 //        if (this.func.getParameter() != null) {
 //            Class[] pms = func.getParameter();
 //            for (int idx=0; idx < pms.length; idx++) {
 //                if (pms[idx] == BoundParam.class) {
 //                    binds.Add(pms[idx]);
 //                }
 //            }
 //            if (binds.Count() > 0) {
 //                return true;
 //            } else {
 //                return true;
 //            }
 //        } else {
 //            return false;
 //        }
 //    }
 public virtual void clear()
 {
     node = null;
 }
示例#2
0
 /// <summary> The current implementation checks to make sure the node is a
 /// TestNode. If it is, it will set the node. If not, it will ignore
 /// it.
 /// </summary>
 public virtual void addNode(BaseNode node)
 {
     if (node is TestNode)
     {
         this.node = (TestNode) node;
     }
 }