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.

DeclareWarning.java 1.1KB

123456789101112131415161718192021222324252627282930313233
  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. * Adrian Colyer Initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.lang.annotation;
  13. import java.lang.annotation.ElementType;
  14. import java.lang.annotation.Retention;
  15. import java.lang.annotation.RetentionPolicy;
  16. import java.lang.annotation.Target;
  17. /**
  18. * @author colyer
  19. * Annotation for declare warning...
  20. *
  21. * usage: @DeclareWarning("somePcut()")
  22. * private static final String "a message";
  23. */
  24. @Retention(RetentionPolicy.RUNTIME)
  25. @Target(ElementType.FIELD)
  26. public @interface DeclareWarning {
  27. /**
  28. * The pointcut expression where to bind the error (don't use if, formal bindings, cflow etc)
  29. */
  30. String value();
  31. }