X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FForest.java;fp=src%2Fedu%2Fberkeley%2Fsbp%2FForest.java;h=4d8b34f28c63e23c6cd1a098d27737378003227c;hp=cdf8a8b634784b7c40ae2c5cce62e0e716d0764d;hb=2cc11837a52505dd9863bcd366240a8f229af294;hpb=d28917b3c84c429e8fd6587717df9e90a894b18f diff --git a/src/edu/berkeley/sbp/Forest.java b/src/edu/berkeley/sbp/Forest.java index cdf8a8b..4d8b34f 100644 --- a/src/edu/berkeley/sbp/Forest.java +++ b/src/edu/berkeley/sbp/Forest.java @@ -20,11 +20,14 @@ public abstract class Forest implements GraphViz.ToGraphViz { /** expand this forest into a set of trees */ public void expand(HashSet> ht) { expand(ht, new HashSet>(), null); } - /** create a new forest */ - public static Forest create(Input.Region loc, T head, Forest[] children, boolean lift) { + static Forest create(Input.Region loc, T head, Forest[] children, boolean lift) { return new One(loc, head, children, lift); } + /** create a new forest */ + public static Forest create(Input.Region loc, T head, Forest[] children) { + return Forest.create(loc, head, children, false); } + // Package-Private ////////////////////////////////////////////////////////////////////////////// abstract void expand(HashSet> ht, HashSet> ignore, Tree bogus);