Package org.aspectj.weaver.reflect
Class ShadowMatchImpl
java.lang.Object
org.aspectj.weaver.reflect.ShadowMatchImpl
- All Implemented Interfaces:
ShadowMatch
- Author:
- colyer Implementation of ShadowMatch for reflection based worlds.
-
Constructor Summary
ConstructorsConstructorDescriptionShadowMatchImpl(FuzzyBoolean match, Test test, ExposedState state, PointcutParameter[] params) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue iff the pointcut expression will match any join point at this shadow (for example, any call to the given method).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.booleanTrue 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).booleanTrue 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).voidsetMatchingContext(MatchingContext aMatchContext)Set a matching context to be used when matching join points.voidsetSubject(Member aMember)voidsetWithinCode(Member aMember)voidsetWithinType(Class<?> aClass)
-
Constructor Details
-
ShadowMatchImpl
public ShadowMatchImpl(FuzzyBoolean match, Test test, ExposedState state, PointcutParameter[] params)
-
-
Method Details
-
setWithinCode
-
setSubject
-
setWithinType
-
alwaysMatches
public boolean alwaysMatches()Description copied from interface:ShadowMatchTrue iff the pointcut expression will match any join point at this shadow (for example, any call to the given method).- Specified by:
alwaysMatchesin interfaceShadowMatch
-
maybeMatches
public boolean maybeMatches()Description copied from interface:ShadowMatchTrue 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:
maybeMatchesin interfaceShadowMatch
-
neverMatches
public boolean neverMatches()Description copied from interface:ShadowMatchTrue 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:
neverMatchesin interfaceShadowMatch
-
matchesJoinPoint
Description copied from interface:ShadowMatchReturn the result of matching a join point at this shadow with the given this, target, and args.- Specified by:
matchesJoinPointin interfaceShadowMatch- Parameters:
thisObject- the object bound to this at the join pointtargetObject- the object bound to target at the join pointargs- the arguments at the join point- Returns:
-
setMatchingContext
Description copied from interface:ShadowMatchSet a matching context to be used when matching join points.- Specified by:
setMatchingContextin interfaceShadowMatch- See Also:
MatchingContext
-