|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.weaver.internal.tools.PointcutExpressionImpl
public class PointcutExpressionImpl
Map from weaver.tools interface to internal Pointcut implementation...
| Nested Class Summary | |
|---|---|
static class |
PointcutExpressionImpl.Handler
|
| Constructor Summary | |
|---|---|
PointcutExpressionImpl(Pointcut pointcut,
java.lang.String expression,
PointcutParameter[] params,
World inWorld)
|
|
| 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. |
Pointcut |
getUnderlyingPointcut()
|
ShadowMatch |
matchesAdviceExecution(java.lang.reflect.Method aMethod)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PointcutExpressionImpl(Pointcut pointcut,
java.lang.String expression,
PointcutParameter[] params,
World inWorld)
| Method Detail |
|---|
public Pointcut getUnderlyingPointcut()
public void setMatchingContext(MatchingContext aMatchContext)
PointcutExpression
setMatchingContext in interface PointcutExpressionMatchingContextpublic boolean couldMatchJoinPointsInType(java.lang.Class aClass)
PointcutExpression
couldMatchJoinPointsInType in interface PointcutExpressionaClass - the candidate class
public boolean mayNeedDynamicTest()
PointcutExpression
mayNeedDynamicTest in interface PointcutExpressionpublic ShadowMatch matchesMethodExecution(java.lang.reflect.Method aMethod)
PointcutExpression
matchesMethodExecution in interface PointcutExpressionaMethod - the method being executed
public ShadowMatch matchesConstructorExecution(java.lang.reflect.Constructor aConstructor)
PointcutExpression
matchesConstructorExecution in interface PointcutExpressionaConstructor - the constructor being executed
public ShadowMatch matchesStaticInitialization(java.lang.Class aClass)
PointcutExpression
matchesStaticInitialization in interface PointcutExpressionaClass - the class being statically initialized
public ShadowMatch matchesAdviceExecution(java.lang.reflect.Method aMethod)
PointcutExpression
matchesAdviceExecution in interface PointcutExpressionaMethod - a method representing the advice being executed
public ShadowMatch matchesInitialization(java.lang.reflect.Constructor aConstructor)
PointcutExpression
matchesInitialization in interface PointcutExpressionaConstructor - the constructor initiating the initialization
public ShadowMatch matchesPreInitialization(java.lang.reflect.Constructor aConstructor)
PointcutExpression
matchesPreInitialization in interface PointcutExpressionaConstructor - the constructor initiating the initialization
public ShadowMatch matchesMethodCall(java.lang.reflect.Method aMethod,
java.lang.reflect.Member withinCode)
PointcutExpression
matchesMethodCall in interface PointcutExpressionaMethod - the method being calledwithinCode - the Method or Constructor from within which the call is made
public ShadowMatch matchesMethodCall(java.lang.reflect.Method aMethod,
java.lang.Class callerType)
PointcutExpression
matchesMethodCall in interface PointcutExpressionaMethod - the method being calledcallerType - the declared type of the caller
public ShadowMatch matchesConstructorCall(java.lang.reflect.Constructor aConstructor,
java.lang.Class callerType)
PointcutExpression
matchesConstructorCall in interface PointcutExpressionaConstructor - the cosstructor being calledcallerType - the declared type of the caller
public ShadowMatch matchesConstructorCall(java.lang.reflect.Constructor aConstructor,
java.lang.reflect.Member withinCode)
PointcutExpression
matchesConstructorCall in interface PointcutExpressionaConstructor - the constructor being calledwithinCode - the Method or Constructor from within which the call is made
public ShadowMatch matchesHandler(java.lang.Class exceptionType,
java.lang.Class handlingType)
PointcutExpression
matchesHandler in interface PointcutExpressionexceptionType - the static type of the exception being handledhandlingType - the type in which the handler block is executing
public ShadowMatch matchesHandler(java.lang.Class exceptionType,
java.lang.reflect.Member withinCode)
PointcutExpression
matchesHandler in interface PointcutExpressionexceptionType - the static type of the exception being handledwithinCode - the method or constructor in which the catch block is declared
public ShadowMatch matchesFieldGet(java.lang.reflect.Field aField,
java.lang.Class withinType)
PointcutExpression
matchesFieldGet in interface PointcutExpressionaField - the field being accessedwithinType - the type owning the call site
public ShadowMatch matchesFieldGet(java.lang.reflect.Field aField,
java.lang.reflect.Member withinCode)
PointcutExpression
matchesFieldGet in interface PointcutExpressionaField - the field being updatedwithinCode - the Method or Constructor owning the call site
public ShadowMatch matchesFieldSet(java.lang.reflect.Field aField,
java.lang.Class withinType)
PointcutExpression
matchesFieldSet in interface PointcutExpressionaField - the field being updatedwithinType - the type owning the call site
public ShadowMatch matchesFieldSet(java.lang.reflect.Field aField,
java.lang.reflect.Member withinCode)
PointcutExpression
matchesFieldSet in interface PointcutExpressionaField - the field being updatedwithinCode - the Method or Constructor owning the call site
public java.lang.String getPointcutExpression()
PointcutExpression
getPointcutExpression in interface PointcutExpression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||