Top Description Methods
org.aspectj.weaver.tools

public Interface ShadowMatch

Known Direct Implementers
org.aspectj.weaver.reflect.ShadowMatchImpl, org.aspectj.weaver.reflect.StandardShadowMatchImpl

The result of asking a PointcutExpression to match at a shadow (method execution, handler, constructor call, and so on).

Method Summary

Modifier and TypeMethod and Description
public boolean
alwaysMatches()

True iff the pointcut expression will match any join point at this shadow (for example, any call to the given method).

public JoinPointMatch
matchesJoinPoint(Object
the object bound to this at the join point
thisObject
,
Object
the object bound to target at the join point
targetObject
,
Object[]
the arguments at the join point
args
)

Return the result of matching a join point at this shadow with the given this, target, and args.

public 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).

public 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).

public void
setMatchingContext(MatchingContext aMatchContext)

Set a matching context to be used when matching join points.

Method Detail

alwaysMatchesback to summary
public boolean alwaysMatches()

True iff the pointcut expression will match any join point at this shadow (for example, any call to the given method).

matchesJoinPointback to summary
public JoinPointMatch matchesJoinPoint(Object thisObject, Object targetObject, Object[] args)

Return the result of matching a join point at this shadow with the given this, target, and args.

Parameters
thisObject:Object

the object bound to this at the join point

targetObject:Object

the object bound to target at the join point

args:Object[]

the arguments at the join point

maybeMatchesback to summary
public 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).

If alwaysMatches is true, then maybeMatches is always true.

neverMatchesback to summary
public 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).

setMatchingContextback to summary
public void setMatchingContext(MatchingContext aMatchContext)

Set a matching context to be used when matching join points.

See Also
MatchingContext