Android
java.lang.reflect
public interface

java.lang.reflect.ParameterizedType

java.lang.reflect.ParameterizedType Type

Represents a parameterized type.

Summary

Public Methods

          Type[]  getActualTypeArguments()
Gets the type arguments for this type.
          Type  getOwnerType()
Gets the parent/owner type, if this type is an inner type, otherwise null is returned if this is a top-level type.
          Type  getRawType()
Gets the raw type of this type.

Details

Public Methods

public Type[] getActualTypeArguments()

Gets the type arguments for this type.

Returns

  • An array of Type, which may be empty.

Throws

TypeNotPresentException if one of the type arguments can't be found.
MalformedParameterizedTypeException if one of the type arguments can't be instantiated for some reason.

public Type getOwnerType()

Gets the parent/owner type, if this type is an inner type, otherwise null is returned if this is a top-level type.

Returns

  • An instance of Type or null.

Throws

TypeNotPresentException if one of the type arguments can't be found.
MalformedParameterizedTypeException if one of the type arguments can't be instantiated for some reason.

public Type getRawType()

Gets the raw type of this type.

Returns

  • An instance of Type.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56