abc.weaving.aspectinfo
Class DeclareMessage.MessageAdvice

java.lang.Object
  extended by abc.weaving.aspectinfo.DeclareMessage.MessageAdvice
All Implemented Interfaces:
AdviceSpec
Enclosing class:
DeclareMessage

public static class DeclareMessage.MessageAdvice
extends java.lang.Object
implements AdviceSpec


Constructor Summary
DeclareMessage.MessageAdvice()
           
 
Method Summary
 boolean isAfter()
          Is this advice spec for "after" advice?
 Residue matchesAt(WeavingEnv we, ShadowMatch sm, AbstractAdviceDecl ad)
          Does this kind of advice match at the given join point shadow?
 void weave(SootMethod method, LocalGeneratorEx localgen, AdviceApplication adviceappl)
          Weave a specific advice application into the given method using the given local generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeclareMessage.MessageAdvice

public DeclareMessage.MessageAdvice()
Method Detail

isAfter

public boolean isAfter()
Description copied from interface: AdviceSpec
Is this advice spec for "after" advice? This affects the precedence of the advice.

Specified by:
isAfter in interface AdviceSpec

matchesAt

public Residue matchesAt(WeavingEnv we,
                         ShadowMatch sm,
                         AbstractAdviceDecl ad)
Description copied from interface: AdviceSpec
Does this kind of advice match at the given join point shadow?

Specified by:
matchesAt in interface AdviceSpec
Parameters:
we - The weaving environment
sm - The shadow match structure
ad - The advice declaration being matched, for use in generating a good error message if appropriate

weave

public void weave(SootMethod method,
                  LocalGeneratorEx localgen,
                  AdviceApplication adviceappl)
Description copied from interface: AdviceSpec
Weave a specific advice application into the given method using the given local generator. The AdviceSpec is used to dispatch to the correct weaving method for the advice type.

Specified by:
weave in interface AdviceSpec