abc.weaving.matching
Class ConstructorCallShadowMatch

java.lang.Object
  extended by abc.weaving.matching.ShadowMatch
      extended by abc.weaving.matching.StmtShadowMatch
          extended by abc.weaving.matching.ConstructorCallShadowMatch

public class ConstructorCallShadowMatch
extends StmtShadowMatch

The results of matching at a new+constructor call shadow

Author:
Ganesh Sittampalam, Ondrej Lhotak

Field Summary
 
Fields inherited from class abc.weaving.matching.StmtShadowMatch
stmt
 
Fields inherited from class abc.weaving.matching.ShadowMatch
container, sp
 
Method Summary
protected  AdviceApplication doAddAdviceApplication(MethodAdviceList mal, AbstractAdviceDecl ad, Residue residue)
           
 java.util.List getArgsContextValues()
          Return a list of ContextValue that represent the runtime values that could be bound by an args() pointcut
 java.util.List getExceptions()
          The list of exceptions that this shadow is declared to throw
 Host getHost()
          Get the host that this ShadowMatch corresponds to, for positional information
 SootMethodRef getMethodRef()
           
 ContextValue getReturningContextValue()
          Return a ContextValue that represents the runtime value that is bound by after returning() advice
 ContextValue getTargetContextValue()
          Return a ContextValue that represents the runtime value that is bound by a target() pointcut
 ShadowMatch inline(ConstructorInliningMap cim)
           
 java.lang.String joinpointName()
           
 SJPInfo makeSJPInfo()
          Construct the sjpInfo structure
static ConstructorCallShadowMatch matchesAt(MethodPosition pos)
           
 
Methods inherited from class abc.weaving.matching.StmtShadowMatch
getEnclosing, getStmt, getThisContextValue, makeArgumentsUniqueLocals, reset
 
Methods inherited from class abc.weaving.matching.ShadowMatch
addAdviceApplication, addIfNecessary, getContainer, getSJPInfo, recordSJPInfo, setShadowPoints, supportsAfter, supportsAround, 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

getMethodRef

public SootMethodRef getMethodRef()

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

matchesAt

public static ConstructorCallShadowMatch matchesAt(MethodPosition pos)

getHost

public Host getHost()
Description copied from class: ShadowMatch
Get the host that this ShadowMatch corresponds to, for positional information

Overrides:
getHost in class StmtShadowMatch

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)
Overrides:
doAddAdviceApplication in class StmtShadowMatch

getTargetContextValue

public ContextValue getTargetContextValue()
Description copied from class: ShadowMatch
Return a ContextValue that represents the runtime value that is bound by a target() pointcut

Specified by:
getTargetContextValue 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

getArgsContextValues

public java.util.List getArgsContextValues()
Description copied from class: ShadowMatch
Return a list of ContextValue that represent the runtime values that could be bound by an args() pointcut

Overrides:
getArgsContextValues in class ShadowMatch

joinpointName

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