abc.weaving.aspectinfo
Class BeforeAdvice

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

public class BeforeAdvice
extends AbstractAdviceSpec

Advice specification for before advice.

Author:
Aske Simon Christensen, Ganesh Sittampalam

Constructor Summary
BeforeAdvice(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

BeforeAdvice

public BeforeAdvice(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.