|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PointcutExpression
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 | |
|---|---|
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. |
| Method Detail |
|---|
void setMatchingContext(MatchingContext aMatchContext)
MatchingContextboolean couldMatchJoinPointsInType(java.lang.Class aClass)
aClass - the candidate class
boolean mayNeedDynamicTest()
ShadowMatch matchesMethodExecution(java.lang.reflect.Method aMethod)
aMethod - the method being executed
ShadowMatch matchesConstructorExecution(java.lang.reflect.Constructor aConstructor)
aConstructor - the constructor being executed
ShadowMatch matchesStaticInitialization(java.lang.Class aClass)
aClass - the class being statically initialized
ShadowMatch matchesAdviceExecution(java.lang.reflect.Method anAdviceMethod)
anAdviceMethod - a method representing the advice being executed
ShadowMatch matchesInitialization(java.lang.reflect.Constructor aConstructor)
aConstructor - the constructor initiating the initialization
ShadowMatch matchesPreInitialization(java.lang.reflect.Constructor aConstructor)
aConstructor - the constructor initiating the initialization
ShadowMatch 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 made
ShadowMatch 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 call
ShadowMatch 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 made
ShadowMatch matchesConstructorCall(java.lang.reflect.Constructor aConstructor,
java.lang.Class callerType)
aConstructor - the cosstructor being calledcallerType - the declared type of the caller
ShadowMatch 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 declared
ShadowMatch 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 executing
ShadowMatch matchesFieldSet(java.lang.reflect.Field aField,
java.lang.reflect.Member withinCode)
aField - the field being updatedwithinCode - the Method or Constructor owning the call site
ShadowMatch matchesFieldSet(java.lang.reflect.Field aField,
java.lang.Class withinType)
aField - the field being updatedwithinType - the type owning the call site
ShadowMatch matchesFieldGet(java.lang.reflect.Field aField,
java.lang.reflect.Member withinCode)
aField - the field being updatedwithinCode - the Method or Constructor owning the call site
ShadowMatch matchesFieldGet(java.lang.reflect.Field aField,
java.lang.Class withinType)
aField - the field being accessedwithinType - the type owning the call site
java.lang.String getPointcutExpression()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||