|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.pointcut.AbstractPointcut
Abstract implementation of the pointcut concept.
I.e. an abstraction of a well defined point of execution in the program.
Could matches one or many as long at it is well defined.
Stores the advices for the specific pointcut.
| Constructor Summary | |
AbstractPointcut(java.lang.String uuid,
java.lang.String pattern)
Creates a new pointcut. |
|
| Method Summary | |
void |
addAdvice(java.lang.String advice)
Adds an advice to the pointcut. |
void |
addAdvices(java.lang.String[] advicesToAdd)
Adds an array of advices to the pointcut. Makes a defensive copy. |
int |
getAdviceIndex(int index)
Returns a specific advice index. |
int[] |
getAdviceIndexes()
Returns a list with the indexes for the advices for the pointcut. |
java.util.List |
getAdviceIndexTuples()
Returns the advices in the form of an array with advice/index tuples. |
java.lang.String[] |
getAdviceNames()
Returns a list with the names for the advices for the pointcut. |
java.lang.String |
getExpression()
Returns the expression for the pointcut. |
boolean |
hasAdvice(java.lang.String advice)
Checks if the pointcuts has a certain advice. |
void |
removeAdvice(java.lang.String advice)
Removes an advice from the pointcut. |
void |
setAdviceIndexTuples(java.util.List advices)
Sets the advices. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractPointcut(java.lang.String uuid,
java.lang.String pattern)
uuid - the UUID for the AspectWerkz systempattern - the pattern for the pointcut| Method Detail |
public void addAdvice(java.lang.String advice)
advice - the name of the advice to addpublic void addAdvices(java.lang.String[] advicesToAdd)
advicesToAdd - the name of the advices to addpublic void removeAdvice(java.lang.String advice)
advice - the name of the advice to removepublic boolean hasAdvice(java.lang.String advice)
advice - the advice to check for existence
public java.util.List getAdviceIndexTuples()
addAdviceTestMethod(..).removeAdviceTestMethod(..).
public void setAdviceIndexTuples(java.util.List advices)
addAdviceTestMethod(..).removeAdviceTestMethod(..).
advices - the new advice/index tuple arraypublic int getAdviceIndex(int index)
public int[] getAdviceIndexes()
public java.lang.String[] getAdviceNames()
public java.lang.String getExpression()
getExpression in interface Pointcut
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||