public class StandardPointcutExpressionImpl extends java.lang.Object implements StandardPointcutExpression
Modifier and Type | Class and Description |
---|---|
static class |
StandardPointcutExpressionImpl.Handler |
Constructor and Description |
---|
StandardPointcutExpressionImpl(Pointcut pointcut,
java.lang.String expression,
PointcutParameter[] params,
World inWorld) |
Modifier and Type | Method and Description |
---|---|
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 |
matchesConstructorExecution(java.lang.reflect.Constructor aConstructor) |
ShadowMatch |
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.
|
ShadowMatch |
matchesMethodExecution(ResolvedMember aMethod)
Determine whether or not this pointcut matches the execution of a given method.
|
ShadowMatch |
matchesStaticInitialization(ResolvedType aType)
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.
|
public StandardPointcutExpressionImpl(Pointcut pointcut, java.lang.String expression, PointcutParameter[] params, World inWorld)
public Pointcut getUnderlyingPointcut()
public void setMatchingContext(MatchingContext aMatchContext)
StandardPointcutExpression
setMatchingContext
in interface StandardPointcutExpression
MatchingContext
public boolean couldMatchJoinPointsInType(java.lang.Class aClass)
StandardPointcutExpression
couldMatchJoinPointsInType
in interface StandardPointcutExpression
aClass
- the candidate classpublic boolean mayNeedDynamicTest()
StandardPointcutExpression
mayNeedDynamicTest
in interface StandardPointcutExpression
public ShadowMatch matchesMethodExecution(ResolvedMember aMethod)
StandardPointcutExpression
matchesMethodExecution
in interface StandardPointcutExpression
aMethod
- the method being executedpublic ShadowMatch matchesConstructorExecution(java.lang.reflect.Constructor aConstructor)
public ShadowMatch matchesStaticInitialization(ResolvedType aType)
StandardPointcutExpression
matchesStaticInitialization
in interface StandardPointcutExpression
public ShadowMatch matchesMethodCall(ResolvedMember aMethod, ResolvedMember withinCode)
StandardPointcutExpression
matchesMethodCall
in interface StandardPointcutExpression
aMethod
- the method being calledwithinCode
- the Method or Constructor from within which the call is madepublic java.lang.String getPointcutExpression()
StandardPointcutExpression
getPointcutExpression
in interface StandardPointcutExpression