English | Site Directory

Android - An Open Handset Alliance Project

java.lang.reflect
public interface

java.lang.reflect.TypeVariable

java.lang.reflect.TypeVariable Type

Represents a type variable.

Summary

Public Methods

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

Details

Public Methods

public Type[] getBounds()

Answers 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.

public D getGenericDeclaration()

Answers a GenericDeclaration object for this type variable.

Returns

  • the generic declaration spec

public String getName()

Answers the type variable's name from source.

Returns

  • the variable's name from the source code.
Build m5-rc15g - 14 May 2008 12:50