public class ShadowMatchImpl extends java.lang.Object implements ShadowMatch
| Constructor and Description |
|---|
ShadowMatchImpl(FuzzyBoolean match,
Test test,
ExposedState state,
PointcutParameter[] params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysMatches()
True iff the pointcut expression will match any join point at this
shadow (for example, any call to the given method).
|
JoinPointMatch |
matchesJoinPoint(java.lang.Object thisObject,
java.lang.Object targetObject,
java.lang.Object[] args)
Return the result of matching a join point at this shadow with the given
this, target, and args.
|
boolean |
maybeMatches()
True if the pointcut expression may match some join points at this
shadow (for example, some calls to the given method may match, depending
on the type of the caller).
|
boolean |
neverMatches()
True iff the pointcut expression can never match any join point at this
shadow (for example, the pointcut will never match a call to the given
method).
|
void |
setMatchingContext(MatchingContext aMatchContext)
Set a matching context to be used when matching
join points.
|
void |
setSubject(java.lang.reflect.Member aMember) |
void |
setWithinCode(java.lang.reflect.Member aMember) |
void |
setWithinType(java.lang.Class<?> aClass) |
public ShadowMatchImpl(FuzzyBoolean match, Test test, ExposedState state, PointcutParameter[] params)
public void setWithinCode(java.lang.reflect.Member aMember)
public void setSubject(java.lang.reflect.Member aMember)
public void setWithinType(java.lang.Class<?> aClass)
public boolean alwaysMatches()
ShadowMatchalwaysMatches in interface ShadowMatchpublic boolean maybeMatches()
ShadowMatchIf alwaysMatches is true, then maybeMatches is always true.
maybeMatches in interface ShadowMatchpublic boolean neverMatches()
ShadowMatchneverMatches in interface ShadowMatchpublic JoinPointMatch matchesJoinPoint(java.lang.Object thisObject, java.lang.Object targetObject, java.lang.Object[] args)
ShadowMatchmatchesJoinPoint in interface ShadowMatchthisObject - the object bound to this at the join pointtargetObject - the object bound to target at the join pointargs - the arguments at the join pointpublic void setMatchingContext(MatchingContext aMatchContext)
ShadowMatchsetMatchingContext in interface ShadowMatchMatchingContext