|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.AspectMetaData
Manages pointcuts and introductions defined by this aspect.
Constructor Summary | |
AspectMetaData(java.lang.String uuid,
java.lang.String name)
Creates a new aspect. |
|
AspectMetaData(java.lang.String uuid,
java.lang.String name,
int deploymentModel)
Creates a new aspect. |
Method Summary | |
void |
addCallPointcut(CallPointcut pointcut)
Adds a new call pointcut to the class. |
void |
addExecutionPointcut(ExecutionPointcut pointcut)
Adds a new execution pointcut to the class. |
void |
addGetPointcut(GetPointcut pointcut)
Adds a new get pointcut to the class. |
void |
addIntroduction(java.lang.String introduction)
Adds an introduction to the open class. |
void |
addIntroductions(java.lang.String[] introductions)
Adds an array with introductions to the open class. |
void |
addMethodToCflowExpressionMap(Expression expression,
Expression cflowExpression)
Adds a Execution expression to execution expr.->cflow call expr. |
void |
addSetPointcut(SetPointcut pointcut)
Adds a new set pointcut to the class. |
void |
addThrowsPointcut(ThrowsPointcut pointcut)
Adds a new throws pointcut to the class. |
boolean |
equals(java.lang.Object o)
|
CallPointcut |
getCallPointcut(java.lang.String expression)
Returns the call pointcut for a specific uuid and expression. |
java.util.List |
getCallPointcuts(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns all the pointcuts for the caller side join point specified. |
java.util.List |
getCFlowExpressions(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns all the cflow call expression for the given metadata (callee side) |
int |
getDeploymentModel()
Returns the deployment model for the aspect. |
java.lang.String |
getDeploymentModelAsString()
Returns the deployment model for the aspect. |
ExecutionPointcut |
getExecutionPointcut(java.lang.String expression)
Returns the execution pointcut for a specific uuid and expression. |
java.util.List |
getExecutionPointcuts(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns all the pointcuts for the method join point specified. |
GetPointcut |
getGetPointcut(java.lang.String expression)
Returns the get pointcut for a specific uuid and expression. |
java.util.List |
getGetPointcuts(ClassMetaData classMetaData,
FieldMetaData fieldMetaData)
Returns all the pointcuts for the method join point specified. |
java.lang.String[] |
getIntroductions()
Returns the introductions for the open class. |
java.lang.String |
getName()
Returns the name of the aspect. |
SetPointcut |
getSetPointcut(java.lang.String expression)
Returns the set pointcut for a specific uuid and expression. |
java.util.List |
getSetPointcuts(ClassMetaData classMetaData,
FieldMetaData fieldMetaData)
Returns all the pointcuts for the method join point specified. |
ThrowsPointcut |
getThrowsPointcut(java.lang.String expression)
Returns the throws pointcut for a specific uuid and expression. |
java.util.List |
getThrowsPointcuts(ClassMetaData classMetaData,
MethodMetaData methodMetaData)
Returns the pointcut for the method/exception join point specified. |
int |
hashCode()
|
boolean |
hasThrowsPointcut(ClassMetaData classMetaData,
MethodMetaData methodMetaData,
java.lang.String exception)
Checks if a specific method/exceptoin join point has a specific throws pointcut configured. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AspectMetaData(java.lang.String uuid, java.lang.String name)
uuid
- the UUID for the AspectWerkz systemname
- the name of the aspectpublic AspectMetaData(java.lang.String uuid, java.lang.String name, int deploymentModel)
uuid
- the UUID for the AspectWerkz systemname
- the name of the aspectdeploymentModel
- the deployment model for the aspectMethod Detail |
public java.lang.String getName()
public int getDeploymentModel()
public java.lang.String getDeploymentModelAsString()
public final void addIntroduction(java.lang.String introduction)
introduction
- the name of the introduction to addpublic final void addIntroductions(java.lang.String[] introductions)
introductions
- the introductions to addpublic void addExecutionPointcut(ExecutionPointcut pointcut)
pointcut
- the pointcut to addpublic void addThrowsPointcut(ThrowsPointcut pointcut)
pointcut
- the pointcut to addpublic final void addGetPointcut(GetPointcut pointcut)
pointcut
- the pointcut to addpublic void addSetPointcut(SetPointcut pointcut)
pointcut
- the pointcut to addpublic final void addCallPointcut(CallPointcut pointcut)
pointcut
- the pointcut to addpublic void addMethodToCflowExpressionMap(Expression expression, Expression cflowExpression)
expression
- the execution expressioncflowExpression
- the cflow call expressionpublic java.lang.String[] getIntroductions()
public ExecutionPointcut getExecutionPointcut(java.lang.String expression)
expression
- the expression
public java.util.List getExecutionPointcuts(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the meta-data for the classmethodMetaData
- the meta-data for the method
public GetPointcut getGetPointcut(java.lang.String expression)
expression
- the expression
public java.util.List getGetPointcuts(ClassMetaData classMetaData, FieldMetaData fieldMetaData)
classMetaData
- the meta-data for the classfieldMetaData
- the meta-data for the field
public SetPointcut getSetPointcut(java.lang.String expression)
expression
- the expression
public java.util.List getSetPointcuts(ClassMetaData classMetaData, FieldMetaData fieldMetaData)
classMetaData
- the meta-data for the classfieldMetaData
- the meta-data for the field
public ThrowsPointcut getThrowsPointcut(java.lang.String expression)
expression
- the expression
public java.util.List getThrowsPointcuts(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the meta-data for the classmethodMetaData
- the method meta-data
public CallPointcut getCallPointcut(java.lang.String expression)
expression
- the expression
public java.util.List getCallPointcuts(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the class metadatamethodMetaData
- the meta-data for the method
public java.util.List getCFlowExpressions(ClassMetaData classMetaData, MethodMetaData methodMetaData)
classMetaData
- the name of the classmethodMetaData
- the meta-data for the method
public boolean hasThrowsPointcut(ClassMetaData classMetaData, MethodMetaData methodMetaData, java.lang.String exception)
classMetaData
- the meta-data for the classmethodMetaData
- the meta-data for the methodexception
- the name pattern of the exception
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |