abc.weaving.aspectinfo
Class DeclareSoft

java.lang.Object
  extended by abc.weaving.aspectinfo.Syntax
      extended by abc.weaving.aspectinfo.AbstractAdviceDecl
          extended by abc.weaving.aspectinfo.DeclareSoft
All Implemented Interfaces:
java.lang.Cloneable

public class DeclareSoft
extends AbstractAdviceDecl

A declare soft declaration.

Author:
Ganesh Sittampalam

Nested Class Summary
static class DeclareSoft.SoftenAdvice
           
 
Field Summary
 
Fields inherited from class abc.weaving.aspectinfo.AbstractAdviceDecl
spec
 
Constructor Summary
DeclareSoft(AbcType exc, Pointcut pc, Aspect aspct, Position pos)
           
 
Method Summary
 void debugInfo(java.lang.String prefix, java.lang.StringBuffer sb)
           
 AbcType getException()
          Get the softened exception.
static int getPrecedence(AdviceDecl a, AdviceDecl b)
           
 WeavingEnv getWeavingEnv()
           
 Chain makeAdviceExecutionStmts(AdviceApplication adviceappl, LocalGeneratorEx localgen, WeavingContext wc)
          Produce a chain containing the statements to execute this piece of advice.
 WeavingContext makeWeavingContext()
           
 java.lang.String toString()
           
 
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 abc.weaving.aspectinfo.Syntax
getPosition
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeclareSoft

public DeclareSoft(AbcType exc,
                   Pointcut pc,
                   Aspect aspct,
                   Position pos)
Method Detail

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 into
wc - 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