net.cscott.sinjdoc

Interface TypeVariable

public interface TypeVariable extends Type

The TypeVariable interface represents a type variable declared as a formal parameter to a generic class, interface, or method. Every actual type variable supports exact one of the two subinterfaces MethodTypeVariable or ClassTypeVariable.

Version: $Id: TypeVariable.java,v 1.6 2003/05/08 03:54:25 cananian Exp $

Author: C. Scott Ananian (cscott@cscott.net)

See Also: java.lang.reflect.TypeVariable

Method Summary
List<Type>getBounds()
Return the bounds on this type variable.
StringgetName()
Return the name of this type variable.

Method Detail

getBounds

public List<Type> getBounds()
Return the bounds on this type variable. If there are no bounds specified, returns an array of length one containing the ClassType for java.lang.Object.

getName

public String getName()
Return the name of this type variable.
Copyright © 2003 C. Scott Ananian