org.codehaus.aspectwerkz.attribdef.definition
Class AdviceDefinition

java.lang.Object
  extended byorg.codehaus.aspectwerkz.attribdef.definition.AdviceDefinition

public class AdviceDefinition
extends java.lang.Object

Holds the meta-data for the advices.

Author:
Jonas Bonér

Constructor Summary
AdviceDefinition(java.lang.String name, java.lang.String aspectName, java.lang.String aspectClassName, Expression expression, java.lang.reflect.Method method, int methodIndex, AspectDefinition aspectDef)
          Creates a new advice meta-data instance.
 
Method Summary
 java.lang.String getAspectClassName()
          Returns the class name.
 java.lang.String getAspectName()
          Returns the aspect name.
 java.lang.String getAttribute()
          Returns the attribute.
 java.lang.String getDeploymentModel()
          Returns the the deployment model for the advice
 Expression getExpression()
          Returns the expression.
 java.lang.reflect.Method getMethod()
          Returns the method.
 int getMethodIndex()
          Returns the method index for the introduction method.
 java.lang.String getName()
          Returns the name of the advice.
 void setAttribute(java.lang.String attribute)
          Sets the attribute.
 void setName(java.lang.String name)
          Sets the name of the advice.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdviceDefinition

public AdviceDefinition(java.lang.String name,
                        java.lang.String aspectName,
                        java.lang.String aspectClassName,
                        Expression expression,
                        java.lang.reflect.Method method,
                        int methodIndex,
                        AspectDefinition aspectDef)
Creates a new advice meta-data instance.

Parameters:
name - the name of the expression
aspectName - the name of the aspect
aspectClassName - the class name of the aspect
expression - the expression
method - the method
methodIndex - the method index
Method Detail

getName

public java.lang.String getName()
Returns the name of the advice.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name of the advice.

Parameters:
name - the name

getExpression

public Expression getExpression()
Returns the expression.

Returns:
the expression

getAspectClassName

public java.lang.String getAspectClassName()
Returns the class name.

Returns:
the class name

getAspectName

public java.lang.String getAspectName()
Returns the aspect name.

Returns:
the aspect name

getMethod

public java.lang.reflect.Method getMethod()
Returns the method.

Returns:
the method

getMethodIndex

public int getMethodIndex()
Returns the method index for the introduction method.

Returns:
the method index

getDeploymentModel

public java.lang.String getDeploymentModel()
Returns the the deployment model for the advice

Returns:
the deployment model

getAttribute

public java.lang.String getAttribute()
Returns the attribute.

Returns:
the attribute

setAttribute

public void setAttribute(java.lang.String attribute)
Sets the attribute.

Parameters:
attribute - the attribute


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.