| java.lang.Object com.tc.aspectwerkz.definition.AdviceDefinition
AdviceDefinition | public class AdviceDefinition (Code) | | Holds the meta-data for the advices.
author: Jonas Boner |
AdviceDefinition | public AdviceDefinition(String name, AdviceType type, String specialArgumentType, String aspectName, String aspectClassName, ExpressionInfo expressionInfo, MethodInfo methodInfo, AspectDefinition aspectDef)(Code) | | ==== CAUTION: do not use directly in the normal case - use newInstance() ===
Creates a new advice meta-data instance.
Parameters: name - the name of the expressionInfo Parameters: type - the type of the advice Parameters: specialArgumentType - the special arg type, such as returning(TYPE) or throwing(TYPE) Parameters: aspectName - the name of the aspect Parameters: aspectClassName - the class name of the aspect Parameters: expressionInfo - the expressionInfo Parameters: methodInfo - the methodInfo |
equals | public boolean equals(Object o)(Code) | | Equals and hashcode means we have the same advice if the aspect qualified name (not classname) and
advice name (may include signature) are the same. [AW-439 fix]
Parameters: o - |
getAspectClassName | public String getAspectClassName()(Code) | | Returns the class name.
the class name |
getAspectDefinition | public AspectDefinition getAspectDefinition()(Code) | | Returns the definition for the aspect that defines this advice.
the aspect definition |
getAspectName | public String getAspectName()(Code) | | Returns the aspect name.
the aspect name |
getAttribute | public String getAttribute()(Code) | | Returns the attribute.
the attribute |
getDeploymentModel | public DeploymentModel getDeploymentModel()(Code) | | Returns the the deployment model for the advice
the deployment model |
getExpressionInfo | public ExpressionInfo getExpressionInfo()(Code) | | Returns the expression.
TODO should return NULL object if null
the expression |
getMethodInfo | public MethodInfo getMethodInfo()(Code) | | Returns the method.
the method |
getName | public String getName()(Code) | | Returns the name of the advice.
the name |
getQualifiedName | public String getQualifiedName()(Code) | | Returns the fully qualified name for the advice
the fully qualified name |
getSpecialArgumentType | public String getSpecialArgumentType()(Code) | | Returns the special arg type, such as returning(TYPE) or throwing(TYPE).
|
getType | public AdviceType getType()(Code) | | Returns the advice type.
the advice type |
hasCflowOrCflowBelow | public boolean hasCflowOrCflowBelow()(Code) | | Check if the advice is bound to a pointcut with cflow or cflowbelow
|
hashCode | public int hashCode()(Code) | | |
newInstance | public static AdviceDefinition newInstance(String adviceName, AdviceType adviceType, String expression, String specialArgumentType, String aspectName, String aspectClassName, MethodInfo method, AspectDefinition aspectDef)(Code) | | TODO only use this method and make ctor private?
Creates a new advice definition.
Parameters: adviceName - the advice name Parameters: adviceType - the advice type Parameters: expression - the advice expression Parameters: specialArgumentType - the arg Parameters: aspectName - the aspect name Parameters: aspectClassName - the aspect class name Parameters: method - the advice method Parameters: aspectDef - the aspect definition the new advice definition |
setAttribute | public void setAttribute(String attribute)(Code) | | Sets the attribute.
Parameters: attribute - the attribute |
setExpressionInfo | public void setExpressionInfo(ExpressionInfo newExpression)(Code) | | Sets the expression info.
Parameters: newExpression - the new expression info |
setName | public void setName(String name)(Code) | | Sets the name of the advice.
Parameters: name - the name |
|
|