org.jboss.lang.reflect
Class TypeVariableImpl
java.lang.Object
org.jboss.lang.reflect.TypeVariableImpl
- All Implemented Interfaces:
- Type, TypeVariable
public class TypeVariableImpl
- extends Object
- implements TypeVariable
- Version:
- $Revision: 1.1 $
- Author:
- Kabir Khan
TypeVariableImpl
public TypeVariableImpl(Object[] bounds,
Class genericDeclaration,
String name)
getBounds
public Object[] getBounds()
- Description copied from interface:
TypeVariable
- Returns an array of Type objects representing the upper bound(s) of this
type variable. Note that if no upper bound is explicitly declared, the
upper bound is Object.
For each upper bound B:
if B is a parameterized type or a type variable, it is created, (see
ParameterizedType for the details of the creation process for
parameterized types). Otherwise, B is resolved.
- Specified by:
getBounds
in interface TypeVariable
- Returns:
- an array of Types representing the upper bound(s) of this type variable
getGenericDeclaration
public Class getGenericDeclaration()
- Specified by:
getGenericDeclaration
in interface TypeVariable
- Returns:
- the GenericDeclaration object representing the generic
declaration declared this type variable.
getName
public String getName()
- Specified by:
getName
in interface TypeVariable
- Returns:
- Returns the name of this type variable, as it occurs in the
source code.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2005-2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.