Package org.aspectj.weaver.tools
Schnittstelle StandardPointcutExpression
- Alle bekannten Implementierungsklassen:
StandardPointcutExpressionImpl
public interface StandardPointcutExpression
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
couldMatchJoinPointsInType
(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.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.boolean
Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args)void
setMatchingContext
(MatchingContext aMatchContext) Set the matching context to be used for subsequent calls to match.
-
Methodendetails
-
setMatchingContext
Set the matching context to be used for subsequent calls to match.- Siehe auch:
-
couldMatchJoinPointsInType
Determine whether or not this pointcut could ever match a join point in the given class.- Parameter:
aClass
- the candidate class- Gibt zurück:
- true iff this pointcut may match a join point within(aClass), and false otherwise
-
mayNeedDynamicTest
boolean mayNeedDynamicTest()Returns true iff this pointcut contains any expression that might necessitate a dynamic test at some join point (e.g. args) -
matchesMethodExecution
Determine whether or not this pointcut matches the execution of a given method.- Parameter:
aMethod
- the method being executed- Gibt zurück:
- a ShadowMatch indicating whether the pointcut always, sometimes, or never matches join points representing the execution of the method.
-
matchesStaticInitialization
Determine whether or not this pointcut matches the static initialization of the given class.- Parameter:
aType
- the class being statically initialized- Gibt zurück:
- a ShadowMatch indicating whether the pointcut always, sometimes, or never matchs join points representing the static initialization of the given type
-
matchesMethodCall
Determine whether or not this pointcut matches a method call to the given method, made during the execution of the given method or constructor.- Parameter:
aMethod
- the method being calledwithinCode
- the Method or Constructor from within which the call is made- Gibt zurück:
- 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
String getPointcutExpression()Return a string representation of this pointcut expression.
-