Save This Page
Home » openjdk-7 » sun.reflect.generics » reflectiveObjects » [javadoc | source]
sun.reflect.generics.reflectiveObjects
public class: ParameterizedTypeImpl [javadoc | source]
java.lang.Object
   sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl

All Implemented Interfaces:
    ParameterizedType

Implementing class for ParameterizedType interface.
Method from sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl Summary:
equals,   getActualTypeArguments,   getOwnerType,   getRawType,   hashCode,   make,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl Detail:
 public boolean equals(Object o) 
 public Type[] getActualTypeArguments() 
    Returns an array of Type objects representing the actual type arguments to this type.

    Note that in some cases, the returned array be empty. This can occur if this type represents a non-parameterized type nested within a parameterized type.

 public Type getOwnerType() 
    Returns a Type object representing the type that this type is a member of. For example, if this type is O.I, return a representation of O.

    If this type is a top-level type, null is returned.

 public Class getRawType() 
    Returns the Type object representing the class or interface that declared this type.
 public int hashCode() 
 public static ParameterizedTypeImpl make(Class rawType,
    Type[] actualTypeArguments,
    Type ownerType) 
    Static factory. Given a (generic) class, actual type arguments and an owner type, creates a parameterized type. This class can be instantiated with a a raw type that does not represent a generic type, provided the list of actual type arguments is empty. If the ownerType argument is null, the declaring class of the raw type is used as the owner type.

    This method throws a MalformedParameterizedTypeException under the following circumstances: If the number of actual type arguments (i.e., the size of the array typeArgs) does not correspond to the number of formal type arguments. If any of the actual type arguments is not an instance of the bounds on the corresponding formal.

 public String toString()