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.

DeclareErrorOrWarning.java 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.reflect;
  13. /**
  14. * AspectJ runtime representation of a declare error or declare warning member
  15. * in an aspect.
  16. */
  17. public interface DeclareErrorOrWarning {
  18. /**
  19. * The type that declared this declare warning or declare error member.
  20. */
  21. AjType getDeclaringType();
  22. /**
  23. * The pointcut expression associated with the warning or error
  24. */
  25. PointcutExpression getPointcutExpression();
  26. /**
  27. * The message associated with the declare warning / declare error
  28. */
  29. String getMessage();
  30. /**
  31. * True if this is a declare error member, false if it is declare warning
  32. */
  33. boolean isError();
  34. }