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.

DeclareParents.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 Adrian Colyer
  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. * Declare parents mixin annotation
  19. */
  20. @Retention(RetentionPolicy.RUNTIME)
  21. @Target(ElementType.FIELD)
  22. public @interface DeclareParents {
  23. /**
  24. * The target types expression
  25. */
  26. String value();
  27. /**
  28. * Optional class defining default implementation
  29. * of interface members (equivalent to defining
  30. * a set of interface member ITDs for the
  31. * public methods of the interface).
  32. */
  33. Class defaultImpl() default DeclareParents.class;
  34. // note - a default of "null" is not allowed,
  35. // hence the strange default given above.
  36. }