Re: Clean Object Class Design -- What is it?

From: Bob Badour <bbadour_at_golden.net>
Date: Sun, 22 Jul 2001 00:25:43 -0400
Message-ID: <uJs67.41$091.11298938_at_radon.golden.net>


>db4o needs one statement to store a tree of any complexity:

I find it interesting that you made the above statement and then followed it with the 43 lines of code your product requires:

>db.set(tree);
>
>
>public class Tree {
>
> public static class TopLevel extends Tree {
> public Tree pid;
> public List defs;
> public Name sourcefile;
> public PackageSymbol packge;
> public Scope namedImportScope;
> public Scope starImportScope;
> public Hashtable docComments = null;
>
> public static class Import extends Tree {
> public Tree qualid;
> }
>
> public static class ClassDef extends Tree {
> public int flags;
> public Name name;
> public List typarams;
> public Tree extending;
> public List implementing;
> public List defs;
> public ClassSymbol sym;
> }
>
> public static class MethodDef extends Tree {
> public int flags;
> public Name name;
> public Tree restype;
> public List typarams;
> public List params;
> public List thrown;
> public javac.tree.Tree.Block body;
> public MethodSymbol sym;
> }
>
> public static class VarDef extends Tree {
> public int flags;
> public Name name;
> public Tree vartype;
> public Tree init;
> public VarSymbol sym;
> }
>
> public static class Block extends Tree {
> public int flags;
> public List stats;
> }
Received on Sun Jul 22 2001 - 06:25:43 CEST

Original text of this message