abc.weaving.matching
Class ExecutionShadowMatch

java.lang.Object
  extended by abc.weaving.matching.ShadowMatch
      extended by abc.weaving.matching.BodyShadowMatch
          extended by abc.weaving.matching.ExecutionShadowMatch

public class ExecutionShadowMatch
extends BodyShadowMatch

An execution join point shadow. abc does a front-end transformation that means that static initialization and advice execution join point shadows are also treated as execution shadows

Author:
Ganesh Sittampalam, Ondrej Lhotak

Field Summary
 
Fields inherited from class abc.weaving.matching.ShadowMatch
container, sp
 
Method Summary
protected  AdviceApplication doAddAdviceApplication(MethodAdviceList mal, AbstractAdviceDecl ad, Residue residue)
           
 java.util.List getExceptions()
          The list of exceptions that this shadow is declared to throw
 ContextValue getReturningContextValue()
          Return a ContextValue that represents the runtime value that is bound by after returning() advice
 ShadowMatch inline(ConstructorInliningMap cim)
           
 java.lang.String joinpointName()
           
 SJPInfo makeSJPInfo()
          Construct the sjpInfo structure
static ExecutionShadowMatch matchesAt(MethodPosition pos)
           
static void reset()
           
 boolean supportsAround()
          Does this shadow support around advice?
 
Methods inherited from class abc.weaving.matching.BodyShadowMatch
getArgsContextValues, getEnclosing, getHost, getTargetContextValue
 
Methods inherited from class abc.weaving.matching.ShadowMatch
addAdviceApplication, addIfNecessary, getContainer, getSJPInfo, getThisContextValue, recordSJPInfo, setShadowPoints, supportsAfter, supportsBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

inline

public ShadowMatch inline(ConstructorInliningMap cim)
Specified by:
inline in class ShadowMatch

reset

public static void reset()

matchesAt

public static ExecutionShadowMatch matchesAt(MethodPosition pos)

getExceptions

public java.util.List getExceptions()
Description copied from class: ShadowMatch
The list of exceptions that this shadow is declared to throw

Overrides:
getExceptions in class ShadowMatch

makeSJPInfo

public SJPInfo makeSJPInfo()
Description copied from class: ShadowMatch
Construct the sjpInfo structure

Specified by:
makeSJPInfo in class ShadowMatch

doAddAdviceApplication

protected AdviceApplication doAddAdviceApplication(MethodAdviceList mal,
                                                   AbstractAdviceDecl ad,
                                                   Residue residue)
Specified by:
doAddAdviceApplication in class ShadowMatch

getReturningContextValue

public ContextValue getReturningContextValue()
Description copied from class: ShadowMatch
Return a ContextValue that represents the runtime value that is bound by after returning() advice

Overrides:
getReturningContextValue in class ShadowMatch

supportsAround

public boolean supportsAround()
Description copied from class: ShadowMatch
Does this shadow support around advice?

Overrides:
supportsAround in class ShadowMatch

joinpointName

public java.lang.String joinpointName()
Specified by:
joinpointName in class ShadowMatch