Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] detailed information about advices using ASM

Hello,

I am trying to compute the impact of advices to classes. Considering the
following example:

class C() {

  static {
   ...
  }

  public C() {
   ...
  }


  public C(String s) {
   ...
  }
}

aspect A {
  pointcut staticInit(): 
    staticinitialization(C);

  pointcut objInit(): 
    initialization(C.new(String));

  before() : staticInit() {
    ...
  }     
  
  before() : objInit() {
    ...
  }
}

I would like to get the following information:
-the before() : staticInit() Advice changes the static initializer of C
-the before() : objInit() Advice changes the constructor C(String), but
not the default constructor of C.

Using the ASM, I can find out, that the advices advise Class C, but I
don't see a way to get more detailed information. Is there a way to
achieve this information ?

Thanks for any help,

Helmut



Back to the top