1 cananian 1.1 // HMethodTypeVariable.java, created Mon Mar 17 20:15:53 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>HMethodTypeVariable</code> interface represents a type
 8 cananian 1.1  * variable declared as a formal parameter to a generic method.
 9 cananian 1.1  * Example: <code>A</code> in <code>&lt;A&gt; compareTo(A a)</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: HMethodTypeVariable.java,v 1.1 2003/03/18 02:27:02 cananian Exp $
19 cananian 1.1  * @see java.lang.reflect.MethodTypeVariable
20 cananian 1.1  */
21 cananian 1.1 public interface HMethodTypeVariable extends HTypeVariable {
22 cananian 1.1     /**
23 cananian 1.1      * Returns an <code>HMethod</code> object representing the method
24 cananian 1.1      * that declared the type variable represented by this object.
25 cananian 1.1      * @return the method that declared the type variable.
26 cananian 1.1      */
27 cananian 1.1     public HMethod getDeclaringMethod();
28 cananian 1.1 }