org.aspectj.weaver.reflect
Class ShadowMatchImpl

java.lang.Object
  extended by org.aspectj.weaver.reflect.ShadowMatchImpl
All Implemented Interfaces:
ShadowMatch

public class ShadowMatchImpl
extends java.lang.Object
implements ShadowMatch


Constructor Summary
ShadowMatchImpl(FuzzyBoolean match, Test test, ExposedState state, PointcutParameter[] params)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowMatchImpl

public ShadowMatchImpl(FuzzyBoolean match,
                       Test test,
                       ExposedState state,
                       PointcutParameter[] params)
Method Detail

setWithinCode

public void setWithinCode(java.lang.reflect.Member aMember)

setSubject

public void setSubject(java.lang.reflect.Member aMember)

setWithinType

public void setWithinType(java.lang.Class<?> aClass)

alwaysMatches

public boolean alwaysMatches()
Description copied from interface: ShadowMatch
True iff the pointcut expression will match any join point at this shadow (for example, any call to the given method).

Specified by:
alwaysMatches in interface ShadowMatch

maybeMatches

public boolean maybeMatches()
Description copied from interface: ShadowMatch
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).

If alwaysMatches is true, then maybeMatches is always true.

Specified by:
maybeMatches in interface ShadowMatch

neverMatches

public boolean neverMatches()
Description copied from interface: ShadowMatch
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).

Specified by:
neverMatches in interface ShadowMatch

matchesJoinPoint

public JoinPointMatch matchesJoinPoint(java.lang.Object thisObject,
                                       java.lang.Object targetObject,
                                       java.lang.Object[] args)
Description copied from interface: ShadowMatch
Return the result of matching a join point at this shadow with the given this, target, and args.

Specified by:
matchesJoinPoint in interface ShadowMatch
Parameters:
thisObject - the object bound to this at the join point
targetObject - the object bound to target at the join point
args - the arguments at the join point
Returns:

setMatchingContext

public void setMatchingContext(MatchingContext aMatchContext)
Description copied from interface: ShadowMatch
Set a matching context to be used when matching join points.

Specified by:
setMatchingContext in interface ShadowMatch
See Also:
MatchingContext