net.cscott.gjdoc
public interface ParameterizedType extends Type
ParameterizedType
interface represents a parameterized
type such as Collection<Integer>
or
HashMap<String,Double>
.Version: $Id: ParameterizedType.java,v 1.5 2003/04/16 17:00:17 cananian Exp $
See Also: java.lang.reflect.ParameterizedType
Method Summary | |
---|---|
List<Type> | getActualTypeArguments() Return the type arguments that this parameterized type has been
instantiated with. |
ClassType | getBaseType() Return the Type corresponding to the "raw class"
of this parameterized type; that is, the type without parameters. |
getBaseType().typeParameters()
. The returned
actual types are ordered from outermost class to innermost
class. For the type A.B.C
,
this method will return the list [ Integer, String ]
even those getBaseType().typeParameters().size()
will
be zero.Type
corresponding to the "raw class"
of this parameterized type; that is, the type without parameters.