Top Fields Constructors Methods
org.aspectj.internal.lang.reflect

public Class AdviceImpl

extends Object
implements Advice
Class Inheritance
All Implemented Interfaces
org.aspectj.lang.reflect.Advice
Imports
java.lang.reflect.Method, .Type, org.aspectj.lang.annotation.AdviceName, org.aspectj.lang.reflect.Advice, .AdviceKind, .AjType, .AjTypeSystem, .PointcutExpression

Author
colyer

Field Summary

Modifier and TypeField and Description
private final Method
private static final String
private AjType<T>[]
private Type[]
private boolean
private final AdviceKind
private AjType<T>[]
private PointcutExpression

Constructor Summary

AccessConstructor and Description
protected
AdviceImpl(Method method, String pointcut, AdviceKind type)

protected
AdviceImpl(Method method, String pointcut, AdviceKind type, String extraParamName)

Method Summary

Modifier and TypeMethod and Description
public AjType<T>
public AjType<?>[]
public Type[]
public AdviceKind
public String
getName()

Implements org.aspectj.lang.reflect.Advice.getName.

If using the @AspectJ annotations, the advice name is the name of the annotated advice method.
public AjType<?>[]
public PointcutExpression
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

adviceMethodback to summary
private final Method adviceMethod
AJC_INTERNALback to summary
private static final String AJC_INTERNAL
exceptionTypesback to summary
private AjType<T>[] exceptionTypes
genericParameterTypesback to summary
private Type[] genericParameterTypes
hasExtraParamback to summary
private boolean hasExtraParam
kindback to summary
private final AdviceKind kind
parameterTypesback to summary
private AjType<T>[] parameterTypes
pointcutExpressionback to summary
private PointcutExpression pointcutExpression

Constructor Detail

AdviceImplback to summary
protected AdviceImpl(Method method, String pointcut, AdviceKind type)
AdviceImplback to summary
protected AdviceImpl(Method method, String pointcut, AdviceKind type, String extraParamName)

Method Detail

getDeclaringTypeback to summary
public AjType<T> getDeclaringType()

Implements org.aspectj.lang.reflect.Advice.getDeclaringType.

Returns:AjType<T>

Doc from org.aspectj.lang.reflect.Advice.getDeclaringType.

the declaring aspect

getExceptionTypesback to summary
public AjType<?>[] getExceptionTypes()

Implements org.aspectj.lang.reflect.Advice.getExceptionTypes.

Returns:AjType<?>[]

Doc from org.aspectj.lang.reflect.Advice.getExceptionTypes.

the declared thrown exceptions by the advice

getGenericParameterTypesback to summary
public Type[] getGenericParameterTypes()

Implements org.aspectj.lang.reflect.Advice.getGenericParameterTypes.

Returns:Type[]

Doc from org.aspectj.lang.reflect.Advice.getGenericParameterTypes.

the generic parameter types, @see java.lang.reflect.Method.getGenericParameterTypes

getKindback to summary
public AdviceKind getKind()

Implements org.aspectj.lang.reflect.Advice.getKind.

Returns:AdviceKind

Doc from org.aspectj.lang.reflect.Advice.getKind.

the kind of advice (before, after-returning, after-throwing, etc.)

getNameback to summary
public String getName()

Implements org.aspectj.lang.reflect.Advice.getName.

Doc from org.aspectj.lang.reflect.Advice.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.

Returns:String

the advice name, or the empty string if the advice is anonymous.

getParameterTypesback to summary
public AjType<?>[] getParameterTypes()

Implements org.aspectj.lang.reflect.Advice.getParameterTypes.

Returns:AjType<?>[]

Doc from org.aspectj.lang.reflect.Advice.getParameterTypes.

the advice parameters

getPointcutExpressionback to summary
public PointcutExpression getPointcutExpression()

Implements org.aspectj.lang.reflect.Advice.getPointcutExpression.

Returns:PointcutExpression

Doc from org.aspectj.lang.reflect.Advice.getPointcutExpression.

the pointcut expression associated with the advice declaration.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.