abc.weaving.aspectinfo
Class BeforeAdvice
java.lang.Object
abc.weaving.aspectinfo.Syntax
abc.weaving.aspectinfo.AbstractAdviceSpec
abc.weaving.aspectinfo.BeforeAdvice
- All Implemented Interfaces:
- AdviceSpec
public class BeforeAdvice
- extends AbstractAdviceSpec
Advice specification for before advice.
- Author:
- Aske Simon Christensen, Ganesh Sittampalam
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BeforeAdvice
public BeforeAdvice(Position pos)
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 environmentsm
- The shadow match structuread
- 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.