Build 1.0_r1(from source)

java.lang.reflect
Interface TypeVariable<D extends GenericDeclaration>

All Superinterfaces:
Type

public interface TypeVariable<D extends GenericDeclaration>
extends Type

Represents a type variable.

Since:
1.5

Method Summary
 Type[] getBounds()
          Returns the upper bounds of the type variable.
 D getGenericDeclaration()
          Returns a GenericDeclaration object for this type variable.
 String getName()
          Returns the type variable's name from source.
 

Method Detail

getBounds

Type[] getBounds()
Returns the upper bounds of the type variable.

Returns:
array of type variable's upper bounds.
Throws:
TypeNotPresentException - if the component type points to a missing type.
MalformedParameterizedTypeException - if the component type points to a type that can't be instantiated for some reason.

getGenericDeclaration

D getGenericDeclaration()
Returns a GenericDeclaration object for this type variable.

Returns:
the generic declaration spec

getName

String getName()
Returns the type variable's name from source.

Returns:
the variable's name from the source code.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature