|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents an AspectJ pointcut expression and provides convenience methods to determine whether or not the pointcut matches join points specified in terms of the java.lang.reflect interfaces.
| Method Summary | |
String |
getPointcutExpression()
Return a string representation of this pointcut expression. |
FuzzyBoolean |
matchesAdviceExecution(Method anAdviceMethod,
Class thisClass)
Determine whether or not this pointcut matches the execution of a given piece of advice. |
FuzzyBoolean |
matchesConstructorCall(Constructor aConstructor,
Class thisClass,
Member withinCode)
Determine whether or not this pointcut matches a call to the given constructor. |
FuzzyBoolean |
matchesConstructorExecution(Constructor aConstructor,
Class thisClass)
Determine whether or not this pointcut matches the execution of a given constructor. |
boolean |
matchesDynamically(Object thisObject,
Object targetObject,
Object[] args)
Returns true iff the dynamic portions of the pointcut expression (this, target, and args) match the given this, target, and args objects. |
FuzzyBoolean |
matchesFieldGet(Field aField,
Class thisClass,
Class targetClass,
Member withinCode)
Determine whether or not this pointcut matches a get of the given field. |
FuzzyBoolean |
matchesFieldSet(Field aField,
Class thisClass,
Class targetClass,
Member withinCode)
Determine whether or not this pointcut matches a set of the given field. |
FuzzyBoolean |
matchesHandler(Class exceptionType,
Class inClass,
Member withinCode)
Determine whether or not this pointcut matches the execution of a given exception handler |
FuzzyBoolean |
matchesInitialization(Constructor aConstructor)
Determine whether or not this pointcut matches the initialization of an object initiated by a call to the given constructor. |
FuzzyBoolean |
matchesMethodCall(Method aMethod,
Class thisClass,
Class targetClass,
Member withinCode)
Determine whether or not this pointcut matches a method call to the given method. |
FuzzyBoolean |
matchesMethodExecution(Method aMethod,
Class thisClass)
Determine whether or not this pointcut matches the execution of a given method. |
FuzzyBoolean |
matchesPreInitialization(Constructor aConstructor)
Determine whether or not this pointcut matches the preinitialization of an object initiated by a call to the given constructor. |
FuzzyBoolean |
matchesStaticInitialization(Class aClass)
Determine whether or not this pointcut matches the static initialization of the given class. |
| Method Detail |
public FuzzyBoolean matchesMethodCall(Method aMethod,
Class thisClass,
Class targetClass,
Member withinCode)
aMethod - the method being calledthisClass - the type making the method calltargetClass - the static type of the target of the call
(may be a subtype of aMethod.getDeclaringClass() )withinCode - the Method or Constructor from within which the call is made
public FuzzyBoolean matchesMethodExecution(Method aMethod,
Class thisClass)
aMethod - the method being executedthisClass - the static type of the object in which the method is executing
(may be a subtype of aMethod.getDeclaringClass())
public FuzzyBoolean matchesConstructorCall(Constructor aConstructor,
Class thisClass,
Member withinCode)
aConstructor - the constructor being calledthisClass - the type making the constructor callwithinCode - the Method or Constructor from within which the call is made
public FuzzyBoolean matchesConstructorExecution(Constructor aConstructor,
Class thisClass)
aConstructor - the constructor being executedthisClass - the static type of the object in which the constructor is executing
(may be a subtype of aConstructor.getDeclaringClass())
public FuzzyBoolean matchesAdviceExecution(Method anAdviceMethod,
Class thisClass)
anAdviceMethod - a method representing the advice being executedthisClass - the static type of the aspect in which the advice is executing
(may be a subtype of anAdviceMethod.getDeclaringClass())
public FuzzyBoolean matchesHandler(Class exceptionType,
Class inClass,
Member withinCode)
exceptionType - the static type of the exception being handledinClass - the class in which the catch block is declaredwithinCode - the method or constructor in which the catch block is declared
public FuzzyBoolean matchesInitialization(Constructor aConstructor)
aConstructor - the constructor initiating the initialization
public FuzzyBoolean matchesPreInitialization(Constructor aConstructor)
aConstructor - the constructor initiating the initialization
public FuzzyBoolean matchesStaticInitialization(Class aClass)
aClass - the class being statically initialized
public FuzzyBoolean matchesFieldSet(Field aField,
Class thisClass,
Class targetClass,
Member withinCode)
aField - the field being updatedthisClass - the type sending the update messagetargetClass - the static type of the target of the field update message
(may be a subtype of aField.getDeclaringClass() )withinCode - the Method or Constructor from within which the update message is sent
public FuzzyBoolean matchesFieldGet(Field aField,
Class thisClass,
Class targetClass,
Member withinCode)
aField - the field being accessedthisClass - the type accessing the fieldtargetClass - the static type of the target of the field access message
(may be a subtype of aField.getDeclaringClass() )withinCode - the Method or Constructor from within which the field is accessed
public boolean matchesDynamically(Object thisObject,
Object targetObject,
Object[] args)
thisObject - targetObject - args -
public String getPointcutExpression()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||