public interface PointcutExpression
| Modifier and Type | Method and Description |
|---|---|
boolean |
couldMatchJoinPointsInType(java.lang.Class aClass)
Determine whether or not this pointcut could ever match a join point in the given class.
|
java.lang.String |
getPointcutExpression()
Return a string representation of this pointcut expression.
|
ShadowMatch |
matchesAdviceExecution(java.lang.reflect.Method anAdviceMethod)
Determine whether or not this pointcut matches the execution of a given piece of advice.
|
ShadowMatch |
matchesConstructorCall(java.lang.reflect.Constructor aConstructor,
java.lang.Class callerType)
Determine whether or not this pointcut matches a method call to the given constructor, made outside
of the scope of any method or constructor, but within the callerType.
|
ShadowMatch |
matchesConstructorCall(java.lang.reflect.Constructor aConstructor,
java.lang.reflect.Member withinCode)
Determine whether or not this pointcut matches a method call to the given constructor, made during
the execution of the given method or constructor.
|
ShadowMatch |
matchesConstructorExecution(java.lang.reflect.Constructor aConstructor)
Determine whether or not this pointcut matches the execution of a given constructor.
|
ShadowMatch |
matchesFieldGet(java.lang.reflect.Field aField,
java.lang.Class withinType)
Determine whether or not this pointcut matches a get of the given field outside of the
scope of any method or constructor, but within the given type (for example, during
static initialization).
|
ShadowMatch |
matchesFieldGet(java.lang.reflect.Field aField,
java.lang.reflect.Member withinCode)
Determine whether or not this pointcut matches a get of the given field from within the given
method or constructor.
|
ShadowMatch |
matchesFieldSet(java.lang.reflect.Field aField,
java.lang.Class withinType)
Determine whether or not this pointcut matches a set of the given field outside of the
scope of any method or constructor, but within the given type (for example, during
static initialization).
|
ShadowMatch |
matchesFieldSet(java.lang.reflect.Field aField,
java.lang.reflect.Member withinCode)
Determine whether or not this pointcut matches a set of the given field from within the given
method or constructor.
|
ShadowMatch |
matchesHandler(java.lang.Class exceptionType,
java.lang.Class handlingType)
Determine whether or not this pointcut matches the execution of a given exception
handler outside of the scope of any method or constructor, but within the handling type.
|
ShadowMatch |
matchesHandler(java.lang.Class exceptionType,
java.lang.reflect.Member withinCode)
Determine whether or not this pointcut matches the execution of a given exception
handler within the given method or constructor
|
ShadowMatch |
matchesInitialization(java.lang.reflect.Constructor aConstructor)
Determine whether or not this pointcut matches the initialization of an
object initiated by a call to the given constructor.
|
ShadowMatch |
matchesMethodCall(java.lang.reflect.Method aMethod,
java.lang.Class callerType)
Determine whether or not this pointcut matches a method call to the given method, made outside
of the scope of any method or constructor, but within the callerType (for example, during
static initialization of the type).
|
ShadowMatch |
matchesMethodCall(java.lang.reflect.Method aMethod,
java.lang.reflect.Member withinCode)
Determine whether or not this pointcut matches a method call to the given method, made during
the execution of the given method or constructor.
|
ShadowMatch |
matchesMethodExecution(java.lang.reflect.Method aMethod)
Determine whether or not this pointcut matches the execution of a given method.
|
ShadowMatch |
matchesPreInitialization(java.lang.reflect.Constructor aConstructor)
Determine whether or not this pointcut matches the pre-initialization of an
object initiated by a call to the given constructor.
|
ShadowMatch |
matchesStaticInitialization(java.lang.Class aClass)
Determine whether or not this pointcut matches the static initialization
of the given class.
|
boolean |
mayNeedDynamicTest()
Returns true iff this pointcut contains any expression that might necessitate a dynamic test
at some join point (e.g.
|
void |
setMatchingContext(MatchingContext aMatchContext)
Set the matching context to be used for
subsequent calls to match.
|
void setMatchingContext(MatchingContext aMatchContext)
MatchingContextboolean couldMatchJoinPointsInType(java.lang.Class aClass)
aClass - the candidate classboolean mayNeedDynamicTest()
ShadowMatch matchesMethodExecution(java.lang.reflect.Method aMethod)
aMethod - the method being executedShadowMatch matchesConstructorExecution(java.lang.reflect.Constructor aConstructor)
aConstructor - the constructor being executedShadowMatch matchesStaticInitialization(java.lang.Class aClass)
aClass - the class being statically initializedShadowMatch matchesAdviceExecution(java.lang.reflect.Method anAdviceMethod)
anAdviceMethod - a method representing the advice being executedShadowMatch matchesInitialization(java.lang.reflect.Constructor aConstructor)
aConstructor - the constructor initiating the initializationShadowMatch matchesPreInitialization(java.lang.reflect.Constructor aConstructor)
aConstructor - the constructor initiating the initializationShadowMatch matchesMethodCall(java.lang.reflect.Method aMethod, java.lang.reflect.Member withinCode)
aMethod - the method being calledwithinCode - the Method or Constructor from within which the call is madeShadowMatch matchesMethodCall(java.lang.reflect.Method aMethod, java.lang.Class callerType)
aMethod - the method being calledcallerType - the declared type of the callerreceiverType - the declared type of the recipient of the callShadowMatch matchesConstructorCall(java.lang.reflect.Constructor aConstructor, java.lang.reflect.Member withinCode)
aConstructor - the constructor being calledwithinCode - the Method or Constructor from within which the call is madeShadowMatch matchesConstructorCall(java.lang.reflect.Constructor aConstructor, java.lang.Class callerType)
aConstructor - the cosstructor being calledcallerType - the declared type of the callerShadowMatch matchesHandler(java.lang.Class exceptionType, java.lang.reflect.Member withinCode)
exceptionType - the static type of the exception being handledwithinCode - the method or constructor in which the catch block is declaredShadowMatch matchesHandler(java.lang.Class exceptionType, java.lang.Class handlingType)
exceptionType - the static type of the exception being handledhandlingType - the type in which the handler block is executingShadowMatch matchesFieldSet(java.lang.reflect.Field aField, java.lang.reflect.Member withinCode)
aField - the field being updatedwithinCode - the Method or Constructor owning the call siteShadowMatch matchesFieldSet(java.lang.reflect.Field aField, java.lang.Class withinType)
aField - the field being updatedwithinType - the type owning the call siteShadowMatch matchesFieldGet(java.lang.reflect.Field aField, java.lang.reflect.Member withinCode)
aField - the field being updatedwithinCode - the Method or Constructor owning the call siteShadowMatch matchesFieldGet(java.lang.reflect.Field aField, java.lang.Class withinType)
aField - the field being accessedwithinType - the type owning the call sitejava.lang.String getPointcutExpression()