org.aspectj.internal.lang.reflect
Class AdviceImpl

java.lang.Object
  extended by org.aspectj.internal.lang.reflect.AdviceImpl
All Implemented Interfaces:
Advice

public class AdviceImpl
extends java.lang.Object
implements Advice

Author:
colyer

Method Summary
 AjType getDeclaringType()
          The declaring aspect
 AjType<?>[] getExceptionTypes()
          The declared thrown exceptions by the advice
 java.lang.reflect.Type[] getGenericParameterTypes()
          The generic parameter types, @see java.lang.reflect.Method.getGenericParameterTypes
 AdviceKind getKind()
          The kind of advice (before, after-returning, after-throwing, etc.)
 java.lang.String getName()
          Returns the advice name, or the empty string if the advice is anonymous.
 AjType<?>[] getParameterTypes()
          The advice parameters
 PointcutExpression getPointcutExpression()
          The pointcut expression associated with the advice declaration.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDeclaringType

public AjType getDeclaringType()
Description copied from interface: Advice
The declaring aspect

Specified by:
getDeclaringType in interface Advice

getGenericParameterTypes

public java.lang.reflect.Type[] getGenericParameterTypes()
Description copied from interface: Advice
The generic parameter types, @see java.lang.reflect.Method.getGenericParameterTypes

Specified by:
getGenericParameterTypes in interface Advice

getParameterTypes

public AjType<?>[] getParameterTypes()
Description copied from interface: Advice
The advice parameters

Specified by:
getParameterTypes in interface Advice

getExceptionTypes

public AjType<?>[] getExceptionTypes()
Description copied from interface: Advice
The declared thrown exceptions by the advice

Specified by:
getExceptionTypes in interface Advice

getKind

public AdviceKind getKind()
Description copied from interface: Advice
The kind of advice (before, after-returning, after-throwing, etc.)

Specified by:
getKind in interface Advice

getName

public java.lang.String getName()
Description copied from interface: Advice
Returns the advice name, or the empty string if the advice is anonymous. If using the @AspectJ annotations, the advice name is the name of the annotated advice method. If using the code style, the advice is anonymous, unless the advice is annotated with the @AdviceName annotation, in which case the name given in the annotation is returned.

Specified by:
getName in interface Advice

getPointcutExpression

public PointcutExpression getPointcutExpression()
Description copied from interface: Advice
The pointcut expression associated with the advice declaration.

Specified by:
getPointcutExpression in interface Advice

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object