|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.pointcut.CallPointcut
Implements the pointcut concept for caller side method access.
A pointcut 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 this specific pointcut.
Constructor Summary | |
CallPointcut(java.lang.String uuid,
Expression expression)
Creates a new call pointcut. |
Method Summary | |
void |
addAfterAdvice(java.lang.String advice)
Adds post advice to the pointcut. |
void |
addBeforeAdvice(java.lang.String advice)
Adds a pre advice to the pointcut. |
void |
addPointcutDef(PointcutDefinition pointcut)
Adds a new pointcut definition. |
void |
addPostAdvices(java.lang.String[] advicesToAdd)
Adds post advices to the pointcut. |
void |
addPreAdvices(java.lang.String[] advicesToAdd)
Adds pre advices to the pointcut. |
java.lang.String |
getCFlowExpression()
Returns the cflow expression. |
Expression |
getExpression()
Returns the expression for the pointcut. |
IndexTuple[] |
getPostAdviceIndexes()
Returns a list with the indexes for the post advices for the pointcut. |
NameIndexTuple[] |
getPostAdviceIndexTuples()
Returns the advices in the form of an array with advice/index tuples. |
java.lang.String[] |
getPostAdviceNames()
Returns a list with the names for the post advices for the pointcut. |
IndexTuple[] |
getPreAdviceIndexes()
Returns a list with the indexes for the pre advices for the pointcut. |
NameIndexTuple[] |
getPreAdviceIndexTuples()
Returns the advices in the form of an array with advice/index tuples. |
java.lang.String[] |
getPreAdviceNames()
Returns a list with the names for the pre advices for the pointcut. |
boolean |
hasPostAdvice(java.lang.String advice)
Checks if the pointcuts has a certain post advice. |
boolean |
hasPreAdvice(java.lang.String advice)
Checks if the pointcuts has a certain pre advice. |
void |
removePostAdvice(java.lang.String advice)
Removes a post advice from the pointcut. |
void |
removePreAdvice(java.lang.String advice)
Removes a pre advice from the pointcut. |
void |
setCFlowExpression(java.lang.String cflowExpression)
Sets the cflow expression. |
void |
setPostAdviceIndexTuples(NameIndexTuple[] tuple)
Sets the advices. |
void |
setPostAdvices(IndexTuple[] indexes,
java.lang.String[] names)
Sets the post advices. |
void |
setPreAdviceIndexTuples(NameIndexTuple[] tuple)
Sets the advices. |
void |
setPreAdvices(IndexTuple[] indexes,
java.lang.String[] names)
Sets the pre advices. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CallPointcut(java.lang.String uuid, Expression expression)
uuid
- the UUID for the AspectWerkz systemexpression
- the expressionMethod Detail |
public void addPointcutDef(PointcutDefinition pointcut)
pointcut
- the pointcut definitionpublic void addBeforeAdvice(java.lang.String advice)
advice
- the name of the advice to addpublic void addAfterAdvice(java.lang.String advice)
advice
- the name of the advice to addpublic void addPreAdvices(java.lang.String[] advicesToAdd)
advicesToAdd
- the advices to addpublic void addPostAdvices(java.lang.String[] advicesToAdd)
advicesToAdd
- the advices to addpublic void removePreAdvice(java.lang.String advice)
advice
- the name of the pre advice to removepublic void removePostAdvice(java.lang.String advice)
advice
- the name of the pre advice to removepublic boolean hasPreAdvice(java.lang.String advice)
advice
- the advice to check for existence
public boolean hasPostAdvice(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 NameIndexTuple[] getPreAdviceIndexTuples()
public void setPreAdviceIndexTuples(NameIndexTuple[] tuple)
tuple
- the new advice/index tuple arraypublic NameIndexTuple[] getPostAdviceIndexTuples()
public void setPostAdviceIndexTuples(NameIndexTuple[] tuple)
tuple
- the new advice/index tuple arraypublic IndexTuple[] getPreAdviceIndexes()
public java.lang.String[] getPreAdviceNames()
public IndexTuple[] getPostAdviceIndexes()
public java.lang.String[] getPostAdviceNames()
public Expression getExpression()
public void setPreAdvices(IndexTuple[] indexes, java.lang.String[] names)
indexes
- the new pre advice index arraynames
- the new pre advice names arraypublic void setPostAdvices(IndexTuple[] indexes, java.lang.String[] names)
indexes
- the new post advice index arraynames
- the new post advice names array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |