Top Description Methods
org.aspectj.lang.annotation

public @Interface DeclareMixin

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

DeclareMixin annotation - see design and usage in https://bugs.eclipse.org/bugs/show_bug.cgi?id=266552

Attached to a factory method, this annotation indicates that any types matching the pattern specified in the annotation value will have new methods mixed in. The methods will be selected based on a combination of the return type of the factory method, possibly sub-setted by any list of interfaces specified in the interfaces annotation value.

Method Summary

Modifier and TypeMethod and Description
public Class<T>[]

Returns:

array of interfaces that are to be mixed in. This is optional and if not specified the return type of the annotated method will be used to determine the interface to mix in.
interfaces
()

public String

Returns:

the target types expression
value
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

interfacesback to summary
public Class<T>[] interfaces()
Returns:Class<T>[]

array of interfaces that are to be mixed in. This is optional and if not specified the return type of the annotated method will be used to determine the interface to mix in.

valueback to summary
public String value()
Returns:String

the target types expression