| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Clean Object Class Design -- What is it?
>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 Sat Jul 21 2001 - 23:25:43 CDT
![]() |
![]() |