Class StandardPointcutExpressionImpl
java.lang.Object
org.aspectj.weaver.internal.tools.StandardPointcutExpressionImpl
- All Implemented Interfaces:
StandardPointcutExpression
Map from weaver.tools interface to internal Pointcut implementation...
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionStandardPointcutExpressionImpl(Pointcut pointcut, String expression, PointcutParameter[] params, World inWorld) -
Method Summary
Modifier and TypeMethodDescriptionbooleancouldMatchJoinPointsInType(Class aClass)Determine whether or not this pointcut could ever match a join point in the given class.Return a string representation of this pointcut expression.matchesConstructorExecution(Constructor aConstructor)matchesMethodCall(ResolvedMember aMethod, ResolvedMember 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.matchesMethodExecution(ResolvedMember aMethod)Determine whether or not this pointcut matches the execution of a given method.Determine whether or not this pointcut matches the static initialization of the given class.booleanReturns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g.voidsetMatchingContext(MatchingContext aMatchContext)Set the matching context to be used for subsequent calls to match.
-
Constructor Details
-
StandardPointcutExpressionImpl
public StandardPointcutExpressionImpl(Pointcut pointcut, String expression, PointcutParameter[] params, World inWorld)
-
-
Method Details
-
getUnderlyingPointcut
-
setMatchingContext
Description copied from interface:StandardPointcutExpressionSet the matching context to be used for subsequent calls to match.- Specified by:
setMatchingContextin interfaceStandardPointcutExpression- See Also:
MatchingContext
-
couldMatchJoinPointsInType
Description copied from interface:StandardPointcutExpressionDetermine whether or not this pointcut could ever match a join point in the given class.- Specified by:
couldMatchJoinPointsInTypein interfaceStandardPointcutExpression- Parameters:
aClass- the candidate class- Returns:
- true iff this pointcut may match a join point within(aClass), and false otherwise
-
mayNeedDynamicTest
public boolean mayNeedDynamicTest()Description copied from interface:StandardPointcutExpressionReturns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args)- Specified by:
mayNeedDynamicTestin interfaceStandardPointcutExpression
-
matchesMethodExecution
Description copied from interface:StandardPointcutExpressionDetermine whether or not this pointcut matches the execution of a given method.- Specified by:
matchesMethodExecutionin interfaceStandardPointcutExpression- Parameters:
aMethod- the method being executed- Returns:
- a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the method.
-
matchesConstructorExecution
-
matchesStaticInitialization
Description copied from interface:StandardPointcutExpressionDetermine whether or not this pointcut matches the static initialization of the given class.- Specified by:
matchesStaticInitializationin interfaceStandardPointcutExpression- Parameters:
aType- the class being statically initialized- Returns:
- a ShadowMatch indicating whether the pointcut always, sometimes, or never matchs join points representing the static initialization of the given type
-
matchesMethodCall
Description copied from interface:StandardPointcutExpressionDetermine whether or not this pointcut matches a method call to the given method, made during the execution of the given method or constructor.- Specified by:
matchesMethodCallin interfaceStandardPointcutExpression- Parameters:
aMethod- the method being calledwithinCode- the Method or Constructor from within which the call is made- 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.
-
getPointcutExpression
Description copied from interface:StandardPointcutExpressionReturn a string representation of this pointcut expression.- Specified by:
getPointcutExpressionin interfaceStandardPointcutExpression
-