Build 1.0_r1(from source)

java.lang.reflect
Interface ParameterizedType

All Superinterfaces:
Type

public interface ParameterizedType
extends Type

Represents a parameterized type.

Since:
1.5

Method Summary
 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.
 

Method Detail

getActualTypeArguments

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.

getOwnerType

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.

getRawType

Type getRawType()
Gets the raw type of this type.

Returns:
An instance of Type.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature