|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.mjdoc.mjdoc_142.MjDoc
org.multijava.mjdoc.mjdoc_142.MjProgramElementDoc
org.multijava.mjdoc.mjdoc_142.MjClassDoc
This class is an interface between the MJC syntax tree classes and the javadoc program; it wraps a CClass object.
| Nested Class Summary | |
static interface |
MjClassDoc.MemberFilter
|
static class |
MjClassDoc.MjMemberFilter
|
| Field Summary | |
static boolean |
addDefaultConstructors
|
private ArrayList |
allmethods
Cached array of the methods (and external methods) of this class. |
private com.sun.javadoc.ClassDoc[] |
cachedImportedClasses
A cached value (after being initialized) of the array of classes imported into the compilation unit this class is defined in. |
private com.sun.javadoc.PackageDoc[] |
cachedImportedPackages
A cached value (after being initialized) of the array of packages imported into the compilation unit this class is defined in. |
private CClass |
cclass
The CClass object that this class wraps. |
private String |
className
Holds the identifier of the class. |
private boolean |
isDeprecated
Cached value indicating whether there is an @deprecated tag. |
private boolean |
isError
True if this object represents a class derived from java.lang.Error. |
private boolean |
isException
True if this object represents a class derived from java.lang.Exception. |
private boolean |
isInterface
True if this object represents an interface. |
private boolean |
isOrdinaryClass
True if this object represents a class (not an interface, error or exception). |
private JTypeDeclarationType |
jtype
Holds the MJ type that this wraps (when source code is available). |
static MjClassDoc.MemberFilter |
memberFilter
|
private ArrayList |
tlmethods
ArrayList of the internal and external methods of this class. |
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjProgramElementDoc |
|
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjDoc |
parser |
| Constructor Summary | |
MjClassDoc(CClass cc)
Constructs an object from a CClass object (to be used when source code is not available). |
|
MjClassDoc(JTypeDeclarationType jtype)
A constructor for the case when source code is available (which makes javadoc comments and formal parameter identifiers available). |
|
| Method Summary | |
MjMethodDoc |
addTLMethod(MJTopLevelMethodDeclaration tlm)
Adds an external method to the set of such methods for this class, so appropriate information will be added to the generated html file. |
ArrayList |
allmethods()
Returns the array of (internal and external) methods of this class (as a MjMethodDoc array), according to the filter set in memberFilter. |
com.sun.javadoc.ClassDoc |
asClassDoc()
Returns the object, since it already is a ClassDoc. |
CClass |
cclass()
Returns the CClass object that corresponds to this MjClassDoc. |
int |
compare(MjClassDoc mjd)
Returns 0 if the classes are not comparable, 1 if the argument supercedes the object, -1 if the object supercedes the argument. |
protected String |
compareString()
This generates the String representation used by compareTo. |
com.sun.javadoc.ConstructorDoc[] |
constructors()
Returns the array of constructors of this class (as a MjConstructorDoc array); the result of this method depends on the current memberFilter. |
com.sun.javadoc.ConstructorDoc[] |
constructors(boolean filtered)
|
ArrayList |
constructorsD(boolean addDefault)
|
boolean |
definesSerializableFields()
NOT IMPLEMENTED |
String |
dimension()
Returns an empty string since a ClassDoc is not an array. |
com.sun.javadoc.FieldDoc[] |
fields()
|
com.sun.javadoc.FieldDoc[] |
fields(boolean filtered)
Returns the fields that are defined for the class represented by this. |
com.sun.javadoc.ClassDoc |
findClass(String className)
NOT IMPLEMENTED - findClass |
MjMethodDoc |
findMethod(CMethod m)
Looks for a method (with an MjMethodDoc) with matching name and signature to the argument that is registered in the MjClassDoc target object. |
MjMethodDoc |
findMethod(MjMethodDoc method)
Looks for a method with matching name and signature to the argument in this class; if found the parent class method is returned; if not null is returned. |
MjMethodDoc |
findMethodRecursive(MjMethodDoc method)
Looks for a method with matching name and signature to the argument in this class and in any superclasses, either until found (in which case the parent class method is returned) or not (null is returned). |
com.sun.javadoc.ClassDoc[] |
importedClasses()
Returns the array of classes imported into the compilation unit this class is defined in. |
com.sun.javadoc.PackageDoc[] |
importedPackages()
Returns the array of packages imported into the compilation unit this class is defined in. |
private void |
init(CClass cc)
A helper method that completes the construction of an object. |
com.sun.javadoc.ClassDoc[] |
innerClasses()
Returns an array of all the nested classes and nested interfaces of this class. |
com.sun.javadoc.ClassDoc[] |
innerClasses(boolean filtered)
|
com.sun.javadoc.ClassDoc[] |
interfaces()
Returns an array of all the interfaces implemented by this class. |
boolean |
isAbstract()
Returns true if this class is abstract. |
boolean |
isClass()
Returns true if this is a class (rather than an interface, field, method or constructor). |
boolean |
isError()
Returns true if the object represents an interface type (rather than a class type). |
boolean |
isException()
Returns true if the object represents an interface type (rather than a class type). |
boolean |
isExternalizable()
UNKNOWN |
boolean |
isInterface()
Returns true if the object represents an interface type (rather than a class type). |
boolean |
isOrdinaryClass()
Returns true if the object represents a class type that is not an interface, an exception (derived from java.lang.Exception) or an error (derived from java.lang.Error). |
boolean |
isSerializable()
UNKNOWN |
JTypeDeclarationType |
jtype()
Returns the wrapped JTypeDeclarationType object. |
long |
longModifiers()
Returns the modifiers of this class declaration encoded as bits in a long, using the MJ encoding. |
private void |
makeAllMethods()
This method converts the methods of the CClass into MjMethodDoc objects. |
com.sun.javadoc.MethodDoc[] |
methods()
Returns the array of (internal and external) methods of this class (as a MjMethodDoc array), according to the filter set in memberFilter. |
com.sun.javadoc.MethodDoc[] |
methods(boolean filtered)
|
ArrayList |
methodsList()
Returns the array of (internal and external) methods of this class (as a MjMethodDoc array), according to the filter set in memberFilter. |
String |
name()
Returns the name of the class, with any enclosing classes prefixed, and with '.' as separator; no package name is prefixed. |
String |
qualifiedName()
Returns the name of the class, with the package name and any enclosing classes prefixed, and with '.' as separator. |
String |
qualifiedTypeName()
Returns the name of the class, with the package name and any enclosing classes prefixed, and with '.' as separator. |
com.sun.javadoc.FieldDoc[] |
serializableFields()
UNKNOWN |
com.sun.javadoc.MethodDoc[] |
serializationMethods()
UNKNOWN |
void |
setJtype(JTypeDeclarationType jt)
A method to set the source code parse tree object for this class after it has been constructed. |
boolean |
subclassOf(com.sun.javadoc.ClassDoc c)
Returns true if 'this' represents a class that is a subclass of the argument. |
boolean |
subclassOf(String qualifiedName)
Returns true if 'this' represents a class that is a subclass of the argument. |
com.sun.javadoc.ClassDoc |
superclass()
Returns (as a MjClassDoc object) the superclass of the class represented by the calling object. |
String |
toString()
Returns the same thing as qualifiedTypeName(). |
String |
typeName()
Returns the name of the class, with any enclosing classes prefixed, and with '.' as separator; no package name is prefixed. |
| Methods inherited from class org.multijava.mjdoc.mjdoc_142.MjProgramElementDoc |
containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier |
| Methods inherited from class org.multijava.mjdoc.mjdoc_142.MjDoc |
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isConstructor, isField, isIncluded, isMethod, notImplemented, position, seeTags, setIncluded, setRawCommentText, setRawCommentText, setRawCommentText, setRawCommentText, tags, tags, tags |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.javadoc.ProgramElementDoc |
containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier |
| Methods inherited from interface com.sun.javadoc.Doc |
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isConstructor, isField, isIncluded, isMethod, position, seeTags, setRawCommentText, tags, tags |
| Field Detail |
private String className
private JTypeDeclarationType jtype
private CClass cclass
private boolean isInterface
private boolean isError
private boolean isException
private boolean isOrdinaryClass
private ArrayList allmethods
private ArrayList tlmethods
private boolean isDeprecated
public static MjClassDoc.MemberFilter memberFilter
private com.sun.javadoc.ClassDoc[] cachedImportedClasses
private com.sun.javadoc.PackageDoc[] cachedImportedPackages
public static boolean addDefaultConstructors
| Constructor Detail |
public MjClassDoc(JTypeDeclarationType jtype)
public MjClassDoc(CClass cc)
| Method Detail |
public void setJtype(JTypeDeclarationType jt)
private void init(CClass cc)
public boolean isClass()
isClass in interface com.sun.javadoc.DocisClass in class MjDocpublic boolean isOrdinaryClass()
isOrdinaryClass in interface com.sun.javadoc.DocisOrdinaryClass in class MjDocpublic boolean isInterface()
isInterface in interface com.sun.javadoc.DocisInterface in class MjDocpublic boolean isError()
isError in interface com.sun.javadoc.DocisError in class MjDocpublic boolean isException()
isException in interface com.sun.javadoc.DocisException in class MjDocpublic CClass cclass()
public String name()
name in interface com.sun.javadoc.Docpublic JTypeDeclarationType jtype()
public String typeName()
typeName in interface com.sun.javadoc.Typepublic String qualifiedTypeName()
qualifiedTypeName in interface com.sun.javadoc.Typepublic String qualifiedName()
qualifiedName in interface com.sun.javadoc.ProgramElementDocpublic String toString()
toString in interface com.sun.javadoc.TypetoString in class Objectpublic com.sun.javadoc.ClassDoc asClassDoc()
asClassDoc in interface com.sun.javadoc.Typepublic String dimension()
dimension in interface com.sun.javadoc.Typepublic boolean definesSerializableFields()
definesSerializableFields in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.FieldDoc[] fields(boolean filtered)
fields in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.FieldDoc[] fields()
fields in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.ClassDoc findClass(String className)
findClass in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.ClassDoc[] importedClasses()
importedClasses in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.PackageDoc[] importedPackages()
importedPackages in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.ClassDoc[] innerClasses()
innerClasses in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.ClassDoc[] innerClasses(boolean filtered)
innerClasses in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.ClassDoc[] interfaces()
interfaces in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.MethodDoc[] methods()
methods in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.MethodDoc[] methods(boolean filtered)
methods in interface com.sun.javadoc.ClassDocpublic ArrayList methodsList()
public ArrayList allmethods()
private void makeAllMethods()
public com.sun.javadoc.ConstructorDoc[] constructors()
constructors in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.ConstructorDoc[] constructors(boolean filtered)
constructors in interface com.sun.javadoc.ClassDocpublic ArrayList constructorsD(boolean addDefault)
public MjMethodDoc addTLMethod(MJTopLevelMethodDeclaration tlm)
public boolean isAbstract()
isAbstract in interface com.sun.javadoc.ClassDocpublic boolean isExternalizable()
isExternalizable in interface com.sun.javadoc.ClassDocpublic boolean isSerializable()
isSerializable in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.FieldDoc[] serializableFields()
serializableFields in interface com.sun.javadoc.ClassDocpublic com.sun.javadoc.MethodDoc[] serializationMethods()
serializationMethods in interface com.sun.javadoc.ClassDocpublic boolean subclassOf(com.sun.javadoc.ClassDoc c)
subclassOf in interface com.sun.javadoc.ClassDocpublic boolean subclassOf(String qualifiedName)
qualifiedName - A fully qualified, '.'-separated class name.public com.sun.javadoc.ClassDoc superclass()
superclass in interface com.sun.javadoc.ClassDocpublic long longModifiers()
public MjMethodDoc findMethodRecursive(MjMethodDoc method)
public MjMethodDoc findMethod(MjMethodDoc method)
public MjMethodDoc findMethod(CMethod m)
protected String compareString()
compareString in class MjDocpublic int compare(MjClassDoc mjd)
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||