abc.weaving.aspectinfo
Class AroundAdvice

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

public class AroundAdvice
extends AbstractAdviceSpec

Advice specification for around advice.

Author:
Aske Simon Christensen

Constructor Summary
AroundAdvice(AbcType rtype, MethodSig proceed, Position pos)
           
 
Method Summary
 MethodSig getProceedImpl()
          get the signature of the dummy placeholder method that is called as a representation of proceed calls inside this around advice.
 AbcType getReturnType()
           
 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

AroundAdvice

public AroundAdvice(AbcType rtype,
                    MethodSig proceed,
                    Position pos)
Method Detail

getReturnType

public AbcType getReturnType()

getProceedImpl

public MethodSig getProceedImpl()
get the signature of the dummy placeholder method that is called as a representation of proceed calls inside this around advice.


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.