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 8 package java.lang.reflect; 9 10 /** 11 * A common interface for all entities that declare type variables. 12 * 13 * @since 1.5 14 */ 15 public interface GenericDeclaration { 16 /** 17 * Returns an array of <tt>TypeVariable</tt> objects that 18 * represent the type variables declared by the generic 19 * declaration represented by this <tt>GenericDeclaration</tt> 20 * object, in declaration order. Returns an array of length 0 if 21 * the underlying generic declaration declares no type variables. 22 * 23 * @return an array of <tt>TypeVariable</tt> objects that represent 24 * the type variables declared by this generic declaration 25 * @throws GenericSignatureFormatError if the generic 26 * signature of this generic declaration does not conform to 27 * the format specified in the Java Virtual Machine Specification, 28 * 3rd edition 29 */ 30 public TypeVariable<?>[] getTypeParameters(); 31 } 32