1 cananian 1.1 // HClassTypeVariable.java, created Mon Mar 17 20:10:58 2003 by cananian
 2 cananian 1.1 // Copyright (C) 2003 C. Scott Ananian <cananian@alumni.princeton.edu>
 3 cananian 1.1 // Licensed under the terms of the GNU GPL; see COPYING for details.
 4 cananian 1.1 package harpoon.ClassFile;
 5 cananian 1.1 
 6 cananian 1.1 /**
 7 cananian 1.1  * The <code>HClassTypeVariable</code> interface represents a type variable
 8 cananian 1.1  * declared as a formal parameter to a generic class or interface.
 9 cananian 1.1  * Example: <code>A</code> in <code>Collection&lt;A&gt;</code>.
10 cananian 1.1  * <p>
11 cananian 1.1  * Note that implementations of this interface are free to return
12 cananian 1.1  * distinct objects for the same type variable; the identity of
13 cananian 1.1  * an object implementing this interface may not be used to test for
14 cananian 1.1  * identity among the type variables they represent. (In other words,
15 cananian 1.1  * this interface does not extend <code>ReferenceUnique</code>.)
16 cananian 1.1  * 
17 cananian 1.1  * @author  C. Scott Ananian <cananian@alumni.princeton.edu>
18 cananian 1.1  * @version $Id: HClassTypeVariable.java,v 1.1 2003/03/18 02:27:02 cananian Exp $
19 cananian 1.1  * @see java.lang.reflect.ClassTypeVariable
20 cananian 1.1  */
21 cananian 1.1 public interface HClassTypeVariable extends HTypeVariable {
22 cananian 1.1     /**
23 cananian 1.1      * Returns an <code>HClass</code> object representing the class or
24 cananian 1.1      * interface that declared the type variable represented by this
25 cananian 1.1      * object.
26 cananian 1.1      * @return the class or interface that declared the type variable.
27 cananian 1.1      */
28 cananian 1.1     public HClass getDeclaringClass();
29 cananian 1.1 }