|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjdoc.mjdoc_142.MjType
This class implements the javadoc Doclet Type interface, by wrapping appropriate type objects from the MJ compiler. It can represent the regular java types and also the specialized A@B types used in multi-methods.
| Field Summary | |
private CType |
baseType
The type of the dtype object, without any array dimension information. |
private static String |
brackets
A constant String that is used to print pairs of brackets. |
private CType |
ctype
The CType object from MJC that this MjType object wraps. |
private int |
depth
The number of array dimensions. |
private CType |
dtype
The CType object from MJC that is the dynamic type (in static@dynamic); equal to (==) ctype if this represents a conventional java type. |
| Constructor Summary | |
MjType(CSpecializedType tt)
Creates an instance of a javadoc Type object based on the MJC CSpecializedType. |
|
MjType(CType t)
Creates an instance of a javadoc Type object based on the MJC CType. |
|
| Method Summary | |
com.sun.javadoc.ClassDoc |
asClassDoc()
Returns the MjClassDoc object for this type; returns null if the type is primitive; may create a new MjClassDoc object if there is none to represent this reference type. |
String |
dimension()
Returns the dimension information, either as a zero-length string or as a String containing pairs of brackets like "[]". |
CType |
dynamicType()
Returns the dynamic type of a multi-method specialized type; this is the second in the A@B pair; in a regular java type, A and B are equal. |
boolean |
isSpecializedType()
Returns true if this is a specialized type as used in multi-method declarations. |
private static String |
name_nested(CClass c)
Returns just the class name, with any enclosing classes - no dimensions, no package. |
(package private) static String |
name_noq_dim(CType t)
Returns the type name without the package but with dimensions. |
(package private) static String |
name_noq_nodim(CType t)
Returns the type name without the package and without dimensions. |
String |
qualifiedTypeName()
Returns the name of the type, including containing classes and its package name, and without the dimension information, all separated by ' |
CType |
staticType()
Returns the static type of a multi-method specialized type; this is the first in the A@B pair; in a regular java type, A and B are equal. |
String |
toString()
Returns the fully-qualified type name, including dimension information. |
String |
typeName()
Returns the name of the type, including containing classes, but without package name, and without the dimension information, all separated by '.'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private CType ctype
private CType dtype
private CType baseType
private int depth
private static final String brackets
| Constructor Detail |
public MjType(CType t)
public MjType(CSpecializedType tt)
| Method Detail |
public String typeName()
typeName in interface com.sun.javadoc.Typepublic String qualifiedTypeName()
qualifiedTypeName in interface com.sun.javadoc.Typepublic String toString()
toString in interface com.sun.javadoc.TypetoString in class Objectpublic String dimension()
dimension in interface com.sun.javadoc.Typepublic com.sun.javadoc.ClassDoc asClassDoc()
asClassDoc in interface com.sun.javadoc.Typepublic CType staticType()
public CType dynamicType()
public boolean isSpecializedType()
static String name_noq_nodim(CType t)
static String name_noq_dim(CType t)
private static String name_nested(CClass c)
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||