abc.weaving.matching
Class BodyShadowMatch

java.lang.Object
  extended by abc.weaving.matching.ShadowMatch
      extended by abc.weaving.matching.BodyShadowMatch
Direct Known Subclasses:
ClassInitializationShadowMatch, ExecutionShadowMatch, InterfaceInitializationShadowMatch, PreinitializationShadowMatch

public abstract class BodyShadowMatch
extends ShadowMatch

A base class for shadow types that are associated with the whole body or a section of it (i.e. execution and [pre]initialisation shadows), rather than with a specific jimple statement.

Author:
Ganesh Sittampalam, Ondrej Lhotak

Field Summary
 
Fields inherited from class abc.weaving.matching.ShadowMatch
container, sp
 
Constructor Summary
protected BodyShadowMatch(SootMethod container)
           
 
Method Summary
 java.util.List getArgsContextValues()
          Return a list of ContextValue that represent the runtime values that could be bound by an args() pointcut
 ShadowMatch getEnclosing()
          return the enclosing ShadowMatch
 Host getHost()
          Get the host that this ShadowMatch corresponds to, for positional information
 ContextValue getTargetContextValue()
          Return a ContextValue that represents the runtime value that is bound by a target() pointcut
 
Methods inherited from class abc.weaving.matching.ShadowMatch
addAdviceApplication, addIfNecessary, doAddAdviceApplication, getContainer, getExceptions, getReturningContextValue, getSJPInfo, getThisContextValue, inline, joinpointName, makeSJPInfo, recordSJPInfo, setShadowPoints, supportsAfter, supportsAround, supportsBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyShadowMatch

protected BodyShadowMatch(SootMethod container)
Method Detail

getEnclosing

public ShadowMatch getEnclosing()
Description copied from class: ShadowMatch
return the enclosing ShadowMatch

Specified by:
getEnclosing in class ShadowMatch

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

getHost

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

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