|
Doclet API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParameterizedType
Represents an invocation of a generic class or interface. For example,
given the generic interface List<E>
, possible invocations
include:
A generic inner classList<String>
List<T extends Number>
List<?>
Outer<T>.Inner<S>
might be invoked as:
Outer<Number>.Inner<String>
Method Summary | |
---|---|
ClassDoc |
asClassDoc()
Return the generic class or interface that declared this type. |
Type |
containingType()
Return the type that contains this type as a member. |
Type[] |
interfaceTypes()
Return the interface types directly implemented by or extended by this parameterized type. |
Type |
superclassType()
Return the class type that is a direct supertype of this one. |
Type[] |
typeArguments()
Return the actual type arguments of this type. |
Methods inherited from interface com.sun.javadoc.Type |
---|
asAnnotationTypeDoc, asParameterizedType, asTypeVariable, asWildcardType, dimension, isPrimitive, qualifiedTypeName, simpleTypeName, toString, typeName |
Method Detail |
---|
ClassDoc asClassDoc()
asClassDoc
in interface Type
Type[] typeArguments()
Outer<T>.Inner<S>
),
only the type arguments of the innermost type are included.
Type superclassType()
For example, if this parameterized type is
java.util.ArrayList<String>
, the result will be
java.util.AbstractList<String>
.
Type[] interfaceTypes()
For example, the interface extended by
java.util.Set<String>
is java.util.Collection<String>
.
Type containingType()
For example, the containing type of
AnInterface.Nested<Number>
is the ClassDoc
representing AnInterface
, and the containing type of
Outer<String>.Inner<Number>
is the
ParameterizedType
representing Outer<String>
.
|
Doclet API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |