org.jboss.lang.reflect
Class ParameterizedTypeImpl

java.lang.Object
  extended by org.jboss.lang.reflect.AbstractTypeImpl
      extended by org.jboss.lang.reflect.ParameterizedTypeImpl
All Implemented Interfaces:
ParameterizedType, Type

public class ParameterizedTypeImpl
extends AbstractTypeImpl
implements ParameterizedType

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Constructor Summary
ParameterizedTypeImpl(String signature, Class rawType, Object ownerType, Object[] actualTypeArguments)
           
 
Method Summary
 Object[] getActualTypeArguments()
          Returns an array of Type objects representing the actual type arguments to this type.
 Object getOwnerType()
          Returns a Type object representing the type that this type is a member of.
 Class getRawType()
          Returns the Type object representing the class or interface that declared this type.
 
Methods inherited from class org.jboss.lang.reflect.AbstractTypeImpl
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterizedTypeImpl

public ParameterizedTypeImpl(String signature,
                             Class rawType,
                             Object ownerType,
                             Object[] actualTypeArguments)
Method Detail

getActualTypeArguments

public Object[] getActualTypeArguments()
Description copied from interface: ParameterizedType
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.

Specified by:
getActualTypeArguments in interface ParameterizedType
Returns:
an array of Type objects representing the actual type arguments to this type

getOwnerType

public Object getOwnerType()
Description copied from interface: ParameterizedType
Returns a Type object representing the type that this type is a member of. For example, if this type is O<T>.I<S>, return a representation of O<T>.

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

Specified by:
getOwnerType in interface ParameterizedType
Returns:
a Type object representing the type that this type is a member of. If this type is a top-level type, null is returned

getRawType

public Class getRawType()
Description copied from interface: ParameterizedType
Returns the Type object representing the class or interface that declared this type.

Specified by:
getRawType in interface ParameterizedType
Returns:
the Type object representing the class or interface that declared this type


Copyright © 2005-2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.