1. /*
  2. * @(#)GenericDeclaration.java 1.3 04/04/20
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.lang.reflect;
  8. /**
  9. * A common interface for all entities that declare type variables.
  10. *
  11. * @since 1.5
  12. */
  13. public interface GenericDeclaration {
  14. /**
  15. * Returns an array of <tt>TypeVariable</tt> objects that
  16. * represent the type variables declared by the generic
  17. * declaration represented by this <tt>GenericDeclaration</tt>
  18. * object, in declaration order. Returns an array of length 0 if
  19. * the underlying generic declaration declares no type variables.
  20. *
  21. * @return an array of <tt>TypeVariable</tt> objects that represent
  22. * the type variables declared by this generic declaration
  23. * @throws GenericSignatureFormatError if the generic
  24. * signature of this generic declaration does not conform to
  25. * the format specified in the Java Virtual Machine Specification,
  26. * 3rd edition
  27. */
  28. public TypeVariable<?>[] getTypeParameters();
  29. }