org.aspectj.lang.reflect
Interface Advice
Runtime representation of an advice declaration inside an aspect
getDeclaringType
public AjType<T> getDeclaringType()
The declaring aspect
getExceptionTypes
public AjType>[] getExceptionTypes()
The declared thrown exceptions by the advice
getGenericParameterTypes
public Type[] getGenericParameterTypes()
The generic parameter types, @see java.lang.reflect.Method.getGenericParameterTypes
getKind
public AdviceKind getKind()
The kind of advice (before, after-returning, after-throwing, etc.)
getName
public String getName()
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.
getParameterTypes
public AjType>[] getParameterTypes()
The advice parameters
getPointcutExpression
public PointcutExpression getPointcutExpression()
The pointcut expression associated with the advice declaration.