[4311] in java-interest

home help back first fref pref prev next nref lref last post

Re: Class Browser Applet

daemon@ATHENA.MIT.EDU (Sal Cataudella)
Fri Dec 15 21:26:53 1995

Date: Thu, 14 Dec 1995 16:39:40 -0500
From: Sal Cataudella <salc@ovid.com>
To: Hairshirt <java-interest@java.sun.com>

Hairshirt wrote:
> 
> Donald Brady wrote:
> >
> > Hi All
> >
> > Has anybody written (or is writing) a class browser applet in Java for the
> > Java language?
> >
> > If not then maybe that's a good applet to do once I become more familiar with
> > Java.
> 
> Great idea, I'd love to use it when you are done... unfortunately for
> both of us, Sun ripped out any introspection interfaces to classes.
> 
> There is presently no way to find out what methods/variables a class
> has in it, much less a way to ask a package what classes are in it.

That's not entirely true. If you can get your hands on a .class
file you can parse its contents and determine *exactly* what's in it.
That's what javap (the dis-assembler ) does. And I've done it too.
Look at the Java VM spec for the format of a class file...

As far as packages go, why can't you simply look at it as a file
directory structure? Each subdirectory is a package that contains
a set of .class files which can be parsed relatively easily...

> I think they've moved all of that stuff into the sun.* packages for
> the debugger, but then there's no documentation for sun.* is there?

About the only docs you'll get on that is if you get a source code
license.. Speaking of which, does anybody know if you'll get
the source for the current beta-2 version _automatically_ if
you already have a source code license, or does one
have to re-license it?

--Sal
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post