|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectabc.weaving.matching.ShadowMatch
public abstract class ShadowMatch
A specific join point shadow
Field Summary | |
---|---|
protected SootMethod |
container
|
ShadowPoints |
sp
The ShadowPoints of a specific shadow match are the nop statements that are inserted to make weaving easier. |
Constructor Summary | |
---|---|
protected |
ShadowMatch(SootMethod container)
|
Method Summary | |
---|---|
void |
addAdviceApplication(MethodAdviceList mal,
AbstractAdviceDecl ad,
Residue residue)
Add a new advice application to the appropriate bit of a method advice list |
void |
addIfNecessary()
|
protected abstract 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 |
SootMethod |
getContainer()
return the method that this ShadowMatch occurs within |
abstract ShadowMatch |
getEnclosing()
return the enclosing ShadowMatch |
java.util.List |
getExceptions()
The list of exceptions that this shadow is declared to throw |
abstract Host |
getHost()
Get the host that this ShadowMatch corresponds to, for positional information |
ContextValue |
getReturningContextValue()
Return a ContextValue that represents the runtime value that is bound by after returning() advice |
SJPInfo |
getSJPInfo()
Retrieve the sjpInfo structure, creating it if necessary |
abstract ContextValue |
getTargetContextValue()
Return a ContextValue that represents the runtime value that is bound by a target() pointcut |
ContextValue |
getThisContextValue()
Return a ContextValue that represents the runtime value that is bound by a this() pointcut |
abstract ShadowMatch |
inline(ConstructorInliningMap cim)
|
abstract java.lang.String |
joinpointName()
|
protected abstract SJPInfo |
makeSJPInfo()
Construct the sjpInfo structure |
void |
recordSJPInfo()
Construct the sjpInfo structure and register it with the global list in GlobalAspectInfo, unless this has already been done |
void |
setShadowPoints(ShadowPoints sp)
This method is called by the ShadowPointsSetter to set the ShadowPoints for this shadow |
boolean |
supportsAfter()
Does this shadow support after advice? |
boolean |
supportsAround()
Does this shadow support around advice? |
boolean |
supportsBefore()
Does this shadow support before advice? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SootMethod container
public ShadowPoints sp
Constructor Detail |
---|
protected ShadowMatch(SootMethod container)
Method Detail |
---|
public abstract ShadowMatch inline(ConstructorInliningMap cim)
public abstract ShadowMatch getEnclosing()
public SootMethod getContainer()
public abstract Host getHost()
protected abstract SJPInfo makeSJPInfo()
public final void recordSJPInfo()
public final SJPInfo getSJPInfo()
public void addAdviceApplication(MethodAdviceList mal, AbstractAdviceDecl ad, Residue residue)
public void addIfNecessary()
protected abstract AdviceApplication doAddAdviceApplication(MethodAdviceList mal, AbstractAdviceDecl ad, Residue residue)
public ContextValue getThisContextValue()
public abstract ContextValue getTargetContextValue()
public java.util.List getArgsContextValues()
public ContextValue getReturningContextValue()
public boolean supportsBefore()
public boolean supportsAfter()
public boolean supportsAround()
public java.util.List getExceptions()
public void setShadowPoints(ShadowPoints sp)
public abstract java.lang.String joinpointName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |