harpoon.ClassFile
Interface HMethodTypeVariable
- All Superinterfaces:
- HType, HTypeVariable
public interface HMethodTypeVariable
- extends HTypeVariable
The HMethodTypeVariable
interface represents a type
variable declared as a formal parameter to a generic method.
Example: A
in <A> compareTo(A a)
.
Note that implementations of this interface are free to return
distinct objects for the same type variable; the identity of
an object implementing this interface may not be used to test for
identity among the type variables they represent. (In other words,
this interface does not extend ReferenceUnique
.)
- Version:
- $Id: HMethodTypeVariable.java,v 1.1 2003/03/18 02:27:02 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
MethodTypeVariable
getDeclaringMethod
HMethod getDeclaringMethod()
- Returns an
HMethod
object representing the method
that declared the type variable represented by this object.
- Returns:
- the method that declared the type variable.