net.cscott.sinjdoc

Interface ClassType

public interface ClassType extends Type

The ClassType interface represents a concrete java class or primitive data type. It does not represent type variables.

Version: $Id: ClassType.java,v 1.6 2003/06/25 01:40:10 cananian Exp $

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

See Also: com.sun.javadoc.Type

Method Summary
ClassDocasClassDoc()
Return the ClassDoc corresponding to this type, ignoring any array dimensions or parameters.
StringcanonicalTypeName()
Return the canonical name of the type.
Stringname()
Return the simple name of this type, not including the names of any declaring classes.
StringtypeName()
Return the unqualified name of this type excluding any package information.

Method Detail

asClassDoc

public ClassDoc asClassDoc()
Return the ClassDoc corresponding to this type, ignoring any array dimensions or parameters. Returns null if it is a primitive type, or if the type is not included.

canonicalTypeName

public String canonicalTypeName()
Return the canonical name of the type. For example, "java.lang.String". See section 6.7 of the JLS.

name

public String name()
Return the simple name of this type, not including the names of any declaring classes.

typeName

public String typeName()
Return the unqualified name of this type excluding any package information. For example, "String". Note that inner class specifications are included in this name; i.e. the returned string may contain dots.
Copyright © 2003 C. Scott Ananian