> -----Original Message----- > From: Jason van Zyl [mailto:[EMAIL PROTECTED]] > > Jeff integrated JDepend last nigth. It is under a BSD license > and has a > simple parser. I am going to use the JavaCC parser to do some > other neat > things as well. I am also interested (most interested) in generating > visualizations of the metrics.
As I see it, Batik could do the job assuming we have an xml representation of the metrics. It should not be too hard to create a Kiviat graph. I wanted to do that for the metrics task in Ant but did not find the time yet. I never used Batik too so I have no real idea of the workload. > What I was planning with one of the visitors was to populate an small > model that represents a Java source file. Then once you have > populated a > set of these classes that represent a source file (or classfile) then > perform the metrics on those. There are also many other possible uses > for a object model for a source file too. mmm... I was starting to use a single metric as a visitor. Each visitor would collect the information for the corresponding class and then some class would aggregate them per class, per compilation unit or per package. dunno exactly. > The parser is simply there as a start, the only thing I've > added is the > ability to reuse the parser. Same thing I did with the > Velocity parser. > The parser will also require some work to trap whitespace > properly, say if we wanted to make a pretty printer. Yep. > I think that would be fine as regenerating the parser from the grammar > shouldn't affect the nodes and I don't think we'll be > changing the names > of the productions in the grammar so that should be fine. No, indeed that would just be a matter of identifying more nodes though I'm not convinced about the distinction between nested class/interface or not as a production node but rather as an helper method. > Take a look at JDepend we could definitely use that for metrics. The > java parser we have I intend to be a rigorous parser and I'm going to > add 1.4 support (i believe someone just did on the javacc list) and > support for aspectj. I would really like to start coming up with some > metrics for aspect oriented code. I'm going to the AOSD conference in > April so hopefully I'll get some cool ideas there. Cool ! Stephane -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
