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.

Pointcut.java 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*******************************************************************************
  2. * Copyright (c) 2005 Contributors.
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * initial implementation Alexandre Vasseur
  11. *******************************************************************************/
  12. package org.aspectj.lang.annotation;
  13. import java.lang.annotation.Target;
  14. import java.lang.annotation.ElementType;
  15. import java.lang.annotation.Retention;
  16. import java.lang.annotation.RetentionPolicy;
  17. /**
  18. * Pointcut declaration
  19. *
  20. * @author Alexandre Vasseur
  21. */
  22. @Retention(RetentionPolicy.RUNTIME)
  23. @Target(ElementType.METHOD)
  24. public @interface Pointcut {
  25. /**
  26. * @return the pointcut expression
  27. * We allow "" as default for abstract pointcut
  28. */
  29. String value() default "";
  30. /**
  31. * When compiling without debug info, or when interpreting pointcuts at runtime,
  32. * the names of any arguments used in the pointcut are not available.
  33. * Under these circumstances only, it is necessary to provide the arg names in
  34. * the annotation - these MUST duplicate the names used in the annotated method.
  35. * Format is a simple comma-separated list.
  36. *
  37. * @return argNames the argument names (should match those in the annotated method)
  38. */
  39. String argNames() default "";
  40. }