abc.weaving.aspectinfo
Class DeclareSoft
java.lang.Object
abc.weaving.aspectinfo.Syntax
abc.weaving.aspectinfo.AbstractAdviceDecl
abc.weaving.aspectinfo.DeclareSoft
- All Implemented Interfaces:
- java.lang.Cloneable
public class DeclareSoft
- extends AbstractAdviceDecl
A declare soft
declaration.
- Author:
- Ganesh Sittampalam
Methods inherited from class abc.weaving.aspectinfo.AbstractAdviceDecl |
clone, errorInfo, getAdviceSpec, getApplCount, getAspect, getDefiningAspect, getFormals, getPointcut, getPrecedence, hasEnclosingJoinPoint, hasJoinPoint, hasJoinPointStaticPart, incrApplCount, makeCopyInAspect, postResidue, preprocess, preResidue, reportMessages, resetForReweaving |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeclareSoft
public DeclareSoft(AbcType exc,
Pointcut pc,
Aspect aspct,
Position pos)
getException
public AbcType getException()
- Get the softened exception.
debugInfo
public void debugInfo(java.lang.String prefix,
java.lang.StringBuffer sb)
- Specified by:
debugInfo
in class AbstractAdviceDecl
getWeavingEnv
public WeavingEnv getWeavingEnv()
- Specified by:
getWeavingEnv
in class AbstractAdviceDecl
makeWeavingContext
public WeavingContext makeWeavingContext()
- Specified by:
makeWeavingContext
in class AbstractAdviceDecl
makeAdviceExecutionStmts
public Chain makeAdviceExecutionStmts(AdviceApplication adviceappl,
LocalGeneratorEx localgen,
WeavingContext wc)
- Description copied from class:
AbstractAdviceDecl
- Produce a chain containing the statements to execute this piece of advice.
If execution reaches the beginning of the chain, then the advice definitely
applies.
- Specified by:
makeAdviceExecutionStmts
in class AbstractAdviceDecl
- Parameters:
adviceappl
- The advice application structure.localgen
- A local variable generator for the method body being woven intowc
- The weaving context
getPrecedence
public static int getPrecedence(AdviceDecl a,
AdviceDecl b)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object