You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AnAspect.java 377B

123456789101112131415
  1. import java.lang.annotation.*;
  2. public aspect AnAspect {
  3. declare @type: Foo: @SimpleAnnotation(id=5); // one type in an array
  4. declare @type: Foo: @AnnotationClassElement(clz=Integer.class); // one type not in an array
  5. before(): call(* (@SimpleAnnotation *).m(..)) {
  6. }
  7. // declare @type: Foo: @AnnotationStringElement(stringval="www"); // two types in an array
  8. }