Package org.aspectj.lang.reflect
Schnittstelle Advice
- Alle bekannten Implementierungsklassen:
AdviceImpl
public interface Advice
Runtime representation of an advice declaration inside an aspect
-
Methodendetails
-
getDeclaringType
AjType getDeclaringType()- Gibt zurück:
- the declaring aspect
-
getKind
AdviceKind getKind()- Gibt zurück:
- the kind of advice (before, after-returning, after-throwing, etc.)
-
getName
String getName()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.- Gibt zurück:
- the advice name, or the empty string if the advice is anonymous.
-
getParameterTypes
AjType<?>[] getParameterTypes()- Gibt zurück:
- the advice parameters
-
getGenericParameterTypes
Type[] getGenericParameterTypes()- Gibt zurück:
- the generic parameter types, @see java.lang.reflect.Method.getGenericParameterTypes
-
getExceptionTypes
AjType<?>[] getExceptionTypes()- Gibt zurück:
- the declared thrown exceptions by the advice
-
getPointcutExpression
PointcutExpression getPointcutExpression()- Gibt zurück:
- the pointcut expression associated with the advice declaration.
-