| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true iff this pointcut may match a join point within(aClass), and false otherwisethe candidate class aClass)Determine whether or not this pointcut could ever match a join point in the given class. |
| public String | |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the advice.a method representing the advice being executed anAdviceMethod)Determine whether or not this pointcut matches the execution of a given piece of advice. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this constructor during the execution of the given member.the constructor being called aConstructor, Member the Method or Constructor from within which the call is made 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. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this constructor during the execution of the given member.the cosstructor being called aConstructor, Class<T> the declared type of the caller 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. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the constructor.the constructor being executed aConstructor)Determine whether or not this pointcut matches the execution of a given constructor. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field get join points for the given field and call site.the field being updated aField, Member the Method or Constructor owning the call site withinCode)Determine whether or not this pointcut matches a get of the given field from within the given method or constructor. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field get join points for the given field and call site.the field being accessed aField, Class<T> the type owning the call site 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). |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field set join points for the given field and call site.the field being updated aField, Member the Method or Constructor owning the call site withinCode)Determine whether or not this pointcut matches a set of the given field from within the given method or constructor. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches field set join points for the given field and call site.the field being updated aField, Class<T> the type owning the call site 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). |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the handling of the given exceptionthe static type of the exception being handled exceptionType, Member the method or constructor in which the catch block is declared withinCode)Determine whether or not this pointcut matches the execution of a given exception handler within the given method or constructor |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the handling of the given exceptionthe static type of the exception being handled exceptionType, Class<T> the type in which the handler block is executing 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. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing initialization via the given constructor.the constructor initiating the initialization aConstructor)Determine whether or not this pointcut matches the initialization of an object initiated by a call to the given constructor. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this method during the execution of the given member.the method being called aMethod, Member the Method or Constructor from within which the call is made 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. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing a call to this method during the execution of the given member.the method being called aMethod, Class<T> the declared type of the caller 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). |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the method.the method being executed aMethod)Determine whether or not this pointcut matches the execution of a given method. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing pre-initialization via the given constructor.the constructor initiating the initialization aConstructor)Determine whether or not this pointcut matches the pre-initialization of an object initiated by a call to the given constructor. |
| public ShadowMatch | Returns: a ShadowMatch indicating whether the pointcut always, sometimes, or never matchs join points representing the static initialization of the given typethe class being statically initialized aClass)Determine whether or not this pointcut matches the static initialization of the given class. |
| public boolean | mayNeedDynamicTest()
Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args) |
| public void | setMatchingContext(MatchingContext aMatchContext)
Set the matching context to be used for subsequent calls to match. |
| couldMatchJoinPointsInType | back to summary |
|---|---|
| public boolean couldMatchJoinPointsInType(Class<T> aClass) Determine whether or not this pointcut could ever match a join point in the given class.
| |
| getPointcutExpression | back to summary |
|---|---|
| public String getPointcutExpression() Return a string representation of this pointcut expression. | |
| matchesAdviceExecution | back to summary |
|---|---|
| public ShadowMatch matchesAdviceExecution(Method anAdviceMethod) Determine whether or not this pointcut matches the execution of a given piece of advice.
| |
| matchesConstructorCall | back to summary |
|---|---|
| public ShadowMatch matchesConstructorCall(Constructor<T> aConstructor, 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.
| |
| matchesConstructorCall | back to summary |
|---|---|
| public ShadowMatch matchesConstructorCall(Constructor<T> aConstructor, Class<T> 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.
| |
| matchesConstructorExecution | back to summary |
|---|---|
| public ShadowMatch matchesConstructorExecution(Constructor<T> aConstructor) Determine whether or not this pointcut matches the execution of a given constructor.
| |
| matchesFieldGet | back to summary |
|---|---|
| public ShadowMatch matchesFieldGet(Field aField, Member withinCode) Determine whether or not this pointcut matches a get of the given field from within the given method or constructor.
| |
| matchesFieldGet | back to summary |
|---|---|
| public ShadowMatch matchesFieldGet(Field aField, Class<T> 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).
| |
| matchesFieldSet | back to summary |
|---|---|
| public ShadowMatch matchesFieldSet(Field aField, Member withinCode) Determine whether or not this pointcut matches a set of the given field from within the given method or constructor.
| |
| matchesFieldSet | back to summary |
|---|---|
| public ShadowMatch matchesFieldSet(Field aField, Class<T> 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).
| |
| matchesHandler | back to summary |
|---|---|
| public ShadowMatch matchesHandler(Class<T> exceptionType, Member withinCode) Determine whether or not this pointcut matches the execution of a given exception handler within the given method or constructor
| |
| matchesHandler | back to summary |
|---|---|
| public ShadowMatch matchesHandler(Class<T> exceptionType, Class<T> 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.
| |
| matchesInitialization | back to summary |
|---|---|
| public ShadowMatch matchesInitialization(Constructor<T> aConstructor) Determine whether or not this pointcut matches the initialization of an object initiated by a call to the given constructor.
| |
| matchesMethodCall | back to summary |
|---|---|
| public ShadowMatch matchesMethodCall(Method aMethod, 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.
| |
| matchesMethodCall | back to summary |
|---|---|
| public ShadowMatch matchesMethodCall(Method aMethod, Class<T> 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).
| |
| matchesMethodExecution | back to summary |
|---|---|
| public ShadowMatch matchesMethodExecution(Method aMethod) Determine whether or not this pointcut matches the execution of a given method.
| |
| matchesPreInitialization | back to summary |
|---|---|
| public ShadowMatch matchesPreInitialization(Constructor<T> aConstructor) Determine whether or not this pointcut matches the pre-initialization of an object initiated by a call to the given constructor.
| |
| matchesStaticInitialization | back to summary |
|---|---|
| public ShadowMatch matchesStaticInitialization(Class<T> aClass) Determine whether or not this pointcut matches the static initialization of the given class.
| |
| mayNeedDynamicTest | back to summary |
|---|---|
| public boolean mayNeedDynamicTest() Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args) | |
| setMatchingContext | back to summary |
|---|---|
| public void setMatchingContext(MatchingContext aMatchContext) Set the matching context to be used for subsequent calls to match.
| |