Team LiB
Previous Section Next Section

ParameterizedTypejava.lang.reflect

Java 5.0

This subinterface of Type represents a parameterized type. getrawType( ) returns the base type that has been parameterized. getActualTypeArguments( ) returns the type parameters as a Type[ ]. Note that these parameters may themselves be ParameterizedType objects. getOwnerType( ) is used with parameterized types that are also nested types: it returns the generic type of the containing type.

Figure 10-99. java.lang.reflect.ParameterizedType


public interface ParameterizedType extends Type {
// Public Instance Methods
     Type[ ] getActualTypeArguments( );  
     Type getOwnerType( );  
     Type getRawType( );  
}

    Team LiB
    Previous Section Next Section