|
||||||||||
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,
Expression expression)
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. |
IndexTuple |
getAdviceIndex(int index)
Returns a specific advice index. |
IndexTuple[] |
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 |
getCFlowExpression()
Returns the cflow expression. |
Expression |
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. |
void |
setCFlowExpression(java.lang.String cflowExpression)
Sets the cflow expression. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractPointcut(java.lang.String uuid, Expression expression)
uuid
- the UUID for the AspectWerkz systemexpression
- the pattern for the pointcutMethod 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.lang.String getCFlowExpression()
public void setCFlowExpression(java.lang.String cflowExpression)
cflowExpression
- the cflow expressionpublic java.util.List getAdviceIndexTuples()
addAdviceTestMethod(..)
.removeAdviceTestMethod(..)
.
public void setAdviceIndexTuples(java.util.List advices)
addAdviceTestMethod(..)
.removeAdviceTestMethod(..)
.
advices
- the new advice/index tuple arraypublic IndexTuple getAdviceIndex(int index)
public IndexTuple[] getAdviceIndexes()
public java.lang.String[] getAdviceNames()
public Expression getExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |