|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTypeVariable
The HTypeVariable
interface represents a type variable
declared as a formal parameter to a generic class, interface, or
method. Example: A
in Collection<A>
.
This interface embodies commonality among all type variables.
Every actual type variable supports one of the two subinterfaces
HMethodTypeVariable
or HClassTypeVariable
.
Note that implementations of this interface are free to return
distinct objects for the same type variable; the identity of
an objects 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
.)
TypeVariable
Method Summary | |
---|---|
HType[] |
getBounds()
Returns an array with HType objects representing the
declared bound(s) of the type variable represented by this object. |
String |
getName()
Returns the name of this type variable. |
Method Detail |
---|
HType[] getBounds()
HType
objects representing the
declared bound(s) of the type variable represented by this object.
If no bound is explicitly declared, than the array contains one
element, a HClass
object representing
java.lang.Object
.
String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |