abc.aspectj.visit
Class CleanAspectMembers

java.lang.Object
  extended by NodeVisitor
      extended by abc.aspectj.visit.CleanAspectMembers

public class CleanAspectMembers
extends NodeVisitor

This visitor cleans up the AST prior to Jimplification, turning it into a Java tree. Advice declarations are rewritten to pure method declarations. Intertype field delcarations, declare declarations and pointcut declarations, as well as intertype constructors are completely stripped out of the tree. For all intertype declarations, we remove the relevant types (which were earlier added to do type checking).

Author:
Aske Simon Christensen, Oege de Moor

Constructor Summary
CleanAspectMembers(NodeFactory nf, TypeSystem ts)
           
 
Method Summary
 Node leave(Node old, Node n, NodeVisitor v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanAspectMembers

public CleanAspectMembers(NodeFactory nf,
                          TypeSystem ts)
Method Detail

leave

public Node leave(Node old,
                  Node n,
                  NodeVisitor v)