Android
java.lang.reflect
public interface

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

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

Represents a type variable.

Summary

Public Methods

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

Details

Public Methods

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

public D getGenericDeclaration()

Returns a GenericDeclaration object for this type variable.

Returns

  • the generic declaration spec

public String getName()

Returns the type variable's name from source.

Returns

  • the variable's name from the source code.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56