|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.pointcut.AbstractPointcut
org.codehaus.aspectwerkz.pointcut.MethodPointcut
Implements the pointcut concept for method access.
Is an abstraction of a well defined point of execution in the program.
Could matches one or many points as long as they are well defined.
Stores the advices for the specific pointcut.
Constructor Summary | |
MethodPointcut(java.lang.String expression)
Creates a new method pointcut. |
|
MethodPointcut(java.lang.String uuid,
java.lang.String expression)
Creates a new method pointcut. |
Method Summary | |
void |
addPointcutDef(PointcutDefinition pointcut)
Adds a new pointcut pattern. |
boolean |
isNonReentrant()
Checks if the pointcut is non-reentrant. |
boolean |
matches(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Checks if the pointcut matches a certain join point. |
static boolean |
matchMethodPointcutSuperClasses(org.apache.commons.jexl.JexlContext jexlContext,
java.lang.String name,
ClassMetaData classMetaData,
MethodMetaData methodMetaData,
PointcutPatternTuple pointcutPattern)
Tries to finds a match at some superclass in the hierarchy. |
static boolean |
matchMethodPointcutSuperClasses(java.lang.String name,
ClassMetaData classMetaData,
PointcutPatternTuple pointcutPattern)
Tries to finds a match at some superclass in the hierarchy. |
Methods inherited from class org.codehaus.aspectwerkz.pointcut.AbstractPointcut |
addAdvice, addAdvices, getAdviceIndex, getAdviceIndexes, getAdviceIndexTuples, getAdviceNames, getExpression, hasAdvice, removeAdvice, setAdviceIndexTuples |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MethodPointcut(java.lang.String expression)
expression
- the expression for the pointcutpublic MethodPointcut(java.lang.String uuid, java.lang.String expression)
uuid
- the UUID for the AspectWerkz systemexpression
- the expression of the pointcutMethod Detail |
public boolean isNonReentrant()
public void addPointcutDef(PointcutDefinition pointcut)
pointcut
- the pointcut definitionpublic boolean matches(ClassMetaData classMetaData, MethodMetaData methodMetaData)
methodMetaData
- the meta-data for the method
public static boolean matchMethodPointcutSuperClasses(java.lang.String name, ClassMetaData classMetaData, PointcutPatternTuple pointcutPattern)
name
- the name of the pointcut to evaluateclassMetaData
- the class meta-datapointcutPattern
- the pointcut pattern
public static boolean matchMethodPointcutSuperClasses(org.apache.commons.jexl.JexlContext jexlContext, java.lang.String name, ClassMetaData classMetaData, MethodMetaData methodMetaData, PointcutPatternTuple pointcutPattern)
jexlContext
- the Jexl contextname
- the name of the pointcut to evaluateclassMetaData
- the class meta-datamethodMetaData
- the method meta-datapointcutPattern
- the pointcut pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |