|
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.MjMemberDoc
org.multijava.mjdoc.mjdoc_142.MjExecutableMemberDoc
org.multijava.mjdoc.mjdoc_142.MjMethodDoc
This class represents a method (but not constructor) of a class; it is the bridge between the MJC syntax tree object and the MethodDoc interface of javadoc doclets. It wraps a JMethodDeclarationType object, or simply CMethod object if only a binary representation is available.
| Nested Class Summary |
| Nested classes inherited from class org.multijava.mjdoc.mjdoc_142.MjExecutableMemberDoc |
MjExecutableMemberDoc.Comp |
| Field Summary | |
private boolean |
isExternal
Records if this method is an external method or not (only valid if the object is constructed using source code. |
private MjMethodDoc |
topConcreteMethod
Cached value of the top method that this method overrides. |
private MjExtMethodsDoc |
unit
The associated MjExtMethodsDoc object if this is external. |
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjExecutableMemberDoc |
|
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjProgramElementDoc |
|
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjDoc |
parser |
| Constructor Summary | |
MjMethodDoc(CMethod cm,
MjClassDoc container)
This constructs an object in cases where only binary code is available. |
|
MjMethodDoc(JMethodDeclarationType jm,
MjClassDoc container)
This constructs an object in cases where source code is available and hence a JMethodDeclarationType object is available. |
|
| Method Summary | |
protected String |
compareString()
Returns a String representation, used for ordering. |
com.sun.javadoc.PackageDoc |
cuPackage()
Returns the package containing the compilation unit that declares this method. |
MjExtMethodsDoc |
externalUnit()
Returns the compilation unit the method is declared in; applicable only to external methods. |
String |
gfFileName()
Cached value of the local top method that this method overrides. |
boolean |
isAbstract()
Returns true if the method is abstract. |
boolean |
isExternal()
Returns true if this method is declared outside its host class. |
boolean |
isMethod()
Returns true since this object represents a method. |
String |
location()
|
String |
name()
Returns the identifier of the method, without package or enclosing classes. |
com.sun.javadoc.ClassDoc |
overriddenClass()
Returns the super class that contains the method that this method overrides, or null if there is no such class. |
com.sun.javadoc.MethodDoc |
overriddenMethod()
Return the method that this method overrides. |
String |
qualifiedName()
Returns the fully-qualified identifier of the method. |
com.sun.javadoc.Type |
returnType()
|
boolean |
sameMethod(MjMethodDoc m)
A modified parser class used by #setRawCommentText to add additional information about
multijava external methods. |
void |
setExternalUnit(MjExtMethodsDoc m)
Records the compilation unit the method is declared in; applicable only to external methods. |
MjMethodDoc |
topConcreteMethod()
Returns the top concrete method of this method. |
| Methods inherited from class org.multijava.mjdoc.mjdoc_142.MjExecutableMemberDoc |
cmethod, flatSignature, isNative, isSynchronized, jmethod, longModifiers, parameters, parameterSignature, paramTags, signature, thrownExceptions, throwsTags, toString |
| Methods inherited from class org.multijava.mjdoc.mjdoc_142.MjMemberDoc |
isSynthetic |
| 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, isClass, isConstructor, isError, isException, isField, isIncluded, isInterface, isOrdinaryClass, 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.ExecutableMemberDoc |
flatSignature, isNative, isSynchronized, parameters, paramTags, signature, thrownExceptions, throwsTags |
| Methods inherited from interface com.sun.javadoc.MemberDoc |
isSynthetic |
| 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, isClass, isConstructor, isError, isException, isField, isIncluded, isInterface, isOrdinaryClass, position, seeTags, setRawCommentText, tags, tags |
| Field Detail |
private boolean isExternal
private MjExtMethodsDoc unit
private MjMethodDoc topConcreteMethod
| Constructor Detail |
public MjMethodDoc(CMethod cm,
MjClassDoc container)
cm - the object wrapped by this class, representing a method in the java programcontainer - the class of which cm is a member
public MjMethodDoc(JMethodDeclarationType jm,
MjClassDoc container)
jm - the object wrapped by this class, representing a method in the java programcontainer - the class of which jm is a member| Method Detail |
public String name()
name in interface com.sun.javadoc.Docpublic String qualifiedName()
qualifiedName in interface com.sun.javadoc.ProgramElementDocqualifiedName in class MjExecutableMemberDocprotected String compareString()
compareString in class MjExecutableMemberDocpublic boolean isAbstract()
isAbstract in interface com.sun.javadoc.MethodDocpublic boolean isMethod()
isMethod in interface com.sun.javadoc.DocisMethod in class MjDocpublic boolean isExternal()
public com.sun.javadoc.ClassDoc overriddenClass()
overriddenClass in interface com.sun.javadoc.MethodDocpublic com.sun.javadoc.MethodDoc overriddenMethod()
overriddenMethod in interface com.sun.javadoc.MethodDocpublic MjExtMethodsDoc externalUnit()
public void setExternalUnit(MjExtMethodsDoc m)
public com.sun.javadoc.PackageDoc cuPackage()
public com.sun.javadoc.Type returnType()
returnType in interface com.sun.javadoc.MethodDocpublic String location()
public boolean sameMethod(MjMethodDoc m)
#setRawCommentText to add additional information about
multijava external methods.
Returns true if the receiver and argument have the same identifier and static parameter types
(but may have different receiver types).
public MjMethodDoc topConcreteMethod()
public String gfFileName()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||