harpoon.ClassFile
Interface HParameterizedType

All Superinterfaces:
HType

public interface HParameterizedType
extends HType

The HParameterizedType interface describes the behavior of parameterized types such as Collection<Applet> or HashMap<String, Class>.

Note that implementations of this interface are free to return distinct objects for the same parameterized type; the identity of an objects implementing this interface may not be used to test for identity among the parameterized types they represent. (In other words, this interface does not extend ReferenceUnique.)

Version:
$Id: HParameterizedType.java,v 1.1 2003/03/18 02:27:02 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
ParameterizedType

Method Summary
 HType[] getActualTypeArguments()
          Returns an array of objects representing the type arguments used to instantiate this parameterized type.
 HClass getRawClass()
          Returns an HClass object representing the generic class or interface that this parameterized type instantiates.
 

Method Detail

getActualTypeArguments

HType[] getActualTypeArguments()
Returns an array of objects representing the type arguments used to instantiate this parameterized type. The length of the array is the exact number of type arguments to this parameterized type, hence it is always at least 1.

Returns:
the actual type arguments to the parameterized type represented by this object.

getRawClass

HClass getRawClass()
Returns an HClass object representing the generic class or interface that this parameterized type instantiates.

Returns:
the class of interface that this parameterized type instantiates.