[Java Parser] For structural exploration
rwithers12 at attbi.com
rwithers12 at attbi.com
Wed Mar 13 06:27:58 UTC 2002
Goran, I took a peek at the site you posted and I couldn't read it!
Now where did I put my Babelfish? Interestingly enough, I could read
the Smalltalk with no problem. :) This is looking fantastic, man. You
load at a very high level and it slurps in the .java and builds a
declarative model. Very nice. I'm not worried about the inner classes
bit, but only the design structure of classes within each module (and
across modules, I suppose). There are about 50+ classes in play in a
complicated way.
Please, please don't rush it out or anything. I've plenty to do, and
won't touch it until this weekend earliest. I hope you are feeling much
better. Sick is no fun at all, is it?
cheers,
Robert
"Gran" Hultgren <gohu at rocketmail.com> wrote:
> I will send you a zip.
>
> It's code that I wrote for a customer for analysis and enforcement of modularity. It loads a
> source tree and constructs instances of JavaFile, JavaClass, JavaInterface, JavaPackage etc. It
> does not create any methods though, but that can probably be added easily. More importantly it
> also parses full dependency info that Jikes can produce and thus complements the model with
> complete dependencies. I have for example some code that rewrites the import-clauses in the source
> files to be "exactly right".
>
> The main functionality is that you can declare "modules" - subsets of the packages/classes that
> the code then aggregates dependencies for. You can then generate reports summarizing the
> dependencies between the modules you defined. By adding rules for what modules different modules
> are allowed to depend on you can "rerun" this thing regularly and get reports on any "breakage" of
> the dictated rules.
>
> It works pretty good even though there might be some problems with really complicated inner
> classes etc. I don't remember exactly but I think I made a kludge that worked for 99% of the time
> - the code base I ran it on had A LOT of nested inner classes etc. and it seemed to get it right.
>
> I also actually wrote a small article about it: http://www.bluefish.se/aquarium/jdepper.html
> It's in swedish (sorry), but you can still see some samle module definitions and some report
> output.
>
> I am currently home sick - but I will probably go to work tomorrow. I will check if I have this
> here at home, otherwise you have it in say 24 hours.
>
> regards, Gran
>
> =====
> Gran Hultgren, goran.hultgren at bluefish.se
> GSM: +46 70 3933950, http://www.bluefish.se
> "Department of Redundancy department." -- ThinkGeek
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
More information about the Squeak-dev
mailing list
|