harpoon.ClassFile
Interface HClassTypeVariable
- All Superinterfaces:
- HType, HTypeVariable
public interface HClassTypeVariable
- extends HTypeVariable
The HClassTypeVariable
interface represents a type variable
declared as a formal parameter to a generic class or interface.
Example: A
in Collection<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: HClassTypeVariable.java,v 1.1 2003/03/18 02:27:02 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
ClassTypeVariable
Method Summary |
HClass |
getDeclaringClass()
Returns an HClass object representing the class or
interface that declared the type variable represented by this
object. |
getDeclaringClass
HClass getDeclaringClass()
- Returns an
HClass
object representing the class or
interface that declared the type variable represented by this
object.
- Returns:
- the class or interface that declared the type variable.