Methods Summary |
---|
public com.sun.javadoc.AnnotationTypeDoc | asAnnotationTypeDoc()Return this type as an AnnotationTypeDoc if it represents
an annotation type. Array dimensions are ignored.
|
public com.sun.javadoc.ClassDoc | asClassDoc()Return this type as a ClassDoc if it represents a class
or interface. Array dimensions are ignored.
If this type is a ParameterizedType ,
TypeVariable , or WildcardType , return
the ClassDoc of the type's erasure. If this is an
AnnotationTypeDoc , return this as a ClassDoc
(but see {@link #asAnnotationTypeDoc()}).
If this is a primitive type, return null.
|
public com.sun.javadoc.ParameterizedType | asParameterizedType()Return this type as a ParameterizedType if it represents
an invocation of a generic class or interface. Array dimensions
are ignored.
|
public com.sun.javadoc.TypeVariable | asTypeVariable()Return this type as a TypeVariable if it represents
a type variable. Array dimensions are ignored.
|
public com.sun.javadoc.WildcardType | asWildcardType()Return this type as a WildcardType if it represents
a wildcard type.
|
public java.lang.String | dimension()Return the type's dimension information, as a string.
For example, a two dimensional array of String returns
"[][] ".
|
public boolean | isPrimitive()Return true if this type represents a primitive type.
|
public java.lang.String | qualifiedTypeName()Return qualified name of type excluding any dimension information.
For example, a two dimensional array of String
returns "java.lang.String ".
|
public java.lang.String | simpleTypeName()Return the simple name of this type excluding any dimension information.
This is the unqualified name of the type, except that for nested types
only the identifier of the innermost type is included.
For example, the class {@code Outer.Inner} returns
"Inner ".
|
public java.lang.String | toString()Return a string representation of the type.
This includes any dimension information and type arguments.
For example, a two dimensional array of String may return
"java.lang.String[][] ",
and the parameterized type {@code List} may return
"{@code java.util.List}".
|
public java.lang.String | typeName()Return unqualified name of type excluding any dimension information.
For example, a two dimensional array of String returns
"String ".
|