abc.weaving.aspectinfo
Class BeforeAfterAdvice

java.lang.Object
  extended by abc.weaving.aspectinfo.Syntax
      extended by abc.weaving.aspectinfo.AbstractAdviceSpec
          extended by abc.weaving.aspectinfo.BeforeAfterAdvice
All Implemented Interfaces:
AdviceSpec

public class BeforeAfterAdvice
extends AbstractAdviceSpec

Advice specification for advice that applies both before and after a joinpoint.

Author:
Ganesh Sittampalam

Nested Class Summary
static interface BeforeAfterAdvice.ChoosePhase
           
 
Constructor Summary
BeforeAfterAdvice(Position pos)
           
 
Method Summary
 Residue matchesAt(WeavingEnv we, ShadowMatch sm, AbstractAdviceDecl ad)
          Does this kind of advice match at the given join point shadow?
 java.lang.String toString()
           
 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 abc.weaving.aspectinfo.AbstractAdviceSpec
isAfter
 
Methods inherited from class abc.weaving.aspectinfo.Syntax
getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeforeAfterAdvice

public BeforeAfterAdvice(Position pos)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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?

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.