copyright notices/updates
[sbp.git] / src / edu / berkeley / sbp / bind / BindingFunctor.java
index 8a4d042..0880e57 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
+
 package edu.berkeley.sbp.bind;
 import edu.berkeley.sbp.*;
 import edu.berkeley.sbp.util.*;
@@ -29,7 +31,7 @@ public class BindingFunctor<T> implements TreeFunctor<T,Object>, ToJava {
         for(Tree tc : t) {
             if (tc.head() != null && tc.head() instanceof Functor)
                 ret.add(((TreeFunctor<Object,Object>)tc.head()).invoke(tc.children()));
-            else if (tc.numChildren() == 0)
+            else if (tc.size() == 0)
                 ret.add(tc.head());
             else {
                 System.err.println("FIXME: don't know what to do about " + tc);