RE: separation of implementation concerns


Subject: RE: separation of implementation concerns
From: John Sung (john_j_sung@yahoo.com)
Date: Wed Jan 30 2002 - 15:41:02 EST


Yes, I would agree with you that this would be the simplest way of
extracting the cg from a program.

I'll try it and see what happens.

John

-----Original Message-----
From: Karl Lieberherr [mailto:lieber@ccs.neu.edu]
Sent: Wednesday, January 30, 2002 3:35 PM
To: john_j_sung@yahoo.com; lieber@ccs.neu.edu
Cc: com3362@ccs.neu.edu; dougo@ccs.neu.edu; johan@ccs.neu.edu
Subject: RE: separation of implementation concerns

Hi John:

you are right: we don't need a new file format. We can just use:

aspect Traversals {
  declare traversal t = ...;
  ...
}

to collect them in one file.

Next point: I think what Artan tried to say is: Add this:

import edu.neu.ccs.demeter.dj.*;

aspect ToCreateClassGraph {
  pointcut mainpc() : execution( * main(..) );
  void around() : mainpc(){
    ClassGraph cg = new ClassGraph(true, false);
    System.out.println(cg);
  }
}

to ANY AspectJ program and you get the class graph as output.

Courtesy of DJ and AspectJ. I think you cannot simplify that much more :-)

-- Karl


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2b28 : Wed Jan 30 2002 - 16:30:47 EST