|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.definition.AdviceDefinition
public class AdviceDefinition
Holds the meta-data for the advices.
Constructor Summary | |
---|---|
AdviceDefinition(String name,
AdviceType type,
String specialArgumentType,
String aspectName,
String aspectClassName,
ExpressionInfo expressionInfo,
MethodInfo methodInfo,
AspectDefinition aspectDef)
Creates a new advice meta-data instance. |
Method Summary | |
---|---|
AdviceDefinition |
copyAt(ExpressionInfo expressionInfo)
Deep copy of the definition. |
boolean |
equals(Object o)
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. |
String |
getAspectClassName()
Returns the class name. |
AspectDefinition |
getAspectDefinition()
Returns the definition for the aspect that defines this advice. |
String |
getAspectName()
Returns the aspect name. |
String |
getAttribute()
Returns the attribute. |
DeploymentModel |
getDeploymentModel()
Returns the the deployment model for the advice |
ExpressionInfo |
getExpressionInfo()
Returns the expression. |
MethodInfo |
getMethodInfo()
Returns the method. |
String |
getName()
Returns the name of the advice. |
String |
getQualifiedName()
Returns the fully qualified name for the advice |
String |
getSpecialArgumentType()
Returns the special arg type, such as returning(TYPE) or throwing(TYPE). |
AdviceType |
getType()
Returns the advice type. |
boolean |
hasCflowOrCflowBelow()
Check if the advice is bound to a pointcut with cflow or cflowbelow |
int |
hashCode()
|
static AdviceDefinition |
newInstance(String adviceName,
AdviceType adviceType,
String expression,
String specialArgumentType,
String aspectName,
String aspectClassName,
MethodInfo method,
AspectDefinition aspectDef)
TODO only use this method and make ctor private? |
void |
setAttribute(String attribute)
Sets the attribute. |
void |
setExpressionInfo(ExpressionInfo newExpression)
Sets the expression info. |
void |
setName(String name)
Sets the name of the advice. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdviceDefinition(String name, AdviceType type, String specialArgumentType, String aspectName, String aspectClassName, ExpressionInfo expressionInfo, MethodInfo methodInfo, AspectDefinition aspectDef)
name
- the name of the expressionInfotype
- the type of the advicespecialArgumentType
- the special arg type, such as returning(TYPE) or throwing(TYPE)aspectName
- the name of the aspectaspectClassName
- the class name of the aspectexpressionInfo
- the expressionInfomethodInfo
- the methodInfoMethod Detail |
---|
public static AdviceDefinition newInstance(String adviceName, AdviceType adviceType, String expression, String specialArgumentType, String aspectName, String aspectClassName, MethodInfo method, AspectDefinition aspectDef)
adviceName
- the advice nameadviceType
- the advice typeexpression
- the advice expressionspecialArgumentType
- the argaspectName
- the aspect nameaspectClassName
- the aspect class namemethod
- the advice methodaspectDef
- the aspect definition
public AdviceType getType()
public String getName()
public String getQualifiedName()
public void setName(String name)
name
- the namepublic ExpressionInfo getExpressionInfo()
public void setExpressionInfo(ExpressionInfo newExpression)
newExpression
- the new expression infopublic String getAspectClassName()
public String getAspectName()
public String getSpecialArgumentType()
public MethodInfo getMethodInfo()
public DeploymentModel getDeploymentModel()
public String getAttribute()
public void setAttribute(String attribute)
attribute
- the attributepublic AspectDefinition getAspectDefinition()
public boolean hasCflowOrCflowBelow()
public AdviceDefinition copyAt(ExpressionInfo expressionInfo)
expressionInfo
-
public boolean equals(Object o)
equals
in class Object
o
-
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |