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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 pointcut member inside a class or aspect.
  15. */
  16. public interface Pointcut {
  17. /**
  18. * The declared name of the pointcut.
  19. */
  20. String getName();
  21. /**
  22. * The modifiers associated with the pointcut declaration.
  23. * Use java.lang.reflect.Modifier to interpret the return value
  24. */
  25. int getModifiers();
  26. /**
  27. * The pointcut parameter types.
  28. */
  29. AjType<?>[] getParameterTypes();
  30. /**
  31. * The pointcut parameter names. Returns an array of empty strings
  32. * of length getParameterTypes().length if parameter names are not
  33. * available at runtime.
  34. */
  35. String[] getParameterNames();
  36. /**
  37. * The type that declared this pointcut
  38. */
  39. AjType getDeclaringType();
  40. /**
  41. * The pointcut expression associated with this pointcut.
  42. */
  43. PointcutExpression getPointcutExpression();
  44. }