RE: separation of implementation concerns


Subject: RE: separation of implementation concerns
From: Karl Lieberherr (lieber@ccs.neu.edu)
Date: Wed Jan 30 2002 - 15:34:44 EST


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



This archive was generated by hypermail 2b28 : Wed Jan 30 2002 - 15:34:45 EST