|
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.MjFieldDoc
This class implements the Doclet FieldDoc interface by wrapping the MJC objects corresponding to a field of a class or interface. For classes for which source code is available, this is the JFieldDeclarationType object for the field; if source code is not available, it is only the CField object.
| Field Summary | |
private CField |
field
Holder for the CField object (the MJC construct) that this class wraps. |
private JFieldDeclarationType |
jfield
Holder for the MJC construct that this class wraps, when source code is available. |
private com.sun.javadoc.Type |
type
The type of the field, derived from the CField object. |
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjProgramElementDoc |
|
| Fields inherited from class org.multijava.mjdoc.mjdoc_142.MjDoc |
parser |
| Constructor Summary | |
MjFieldDoc(MjClassDoc container,
CField field)
Constructor of an object wrapping a specific field, used when source code is not available. |
|
MjFieldDoc(MjClassDoc container,
JFieldDeclarationType jfield)
Constructor of an object wrapping a specific field, used when source code is available, since information such as the javadoc comments are available from a JMemberDeclarationType object, but not from a CField object. |
|
| Method Summary | |
protected String |
compareString()
Returns a String representation, used for ordering. |
Object |
constantValue()
Get the value of a constant field. |
String |
constantValueExpression()
Get the value of a constant field. |
boolean |
isField()
Returns true because this class represents a field. |
boolean |
isTransient()
Returns true if this field is marked transient in the java code. |
boolean |
isVolatile()
Returns true if this field is marked volatile in the java code. |
JFieldDeclarationType |
jfield()
Returns the wrapped field declaration. |
long |
longModifiers()
Returns the modifiers (e.g. public, private, static, final ...) of the field, encoded as bits of a long, as is done in MJC (cf. the Constants in Constants). |
String |
name()
The (non-qualified), simple identifier for the field. |
String |
qualifiedName()
The fully-qualified name of the field. |
com.sun.javadoc.SerialFieldTag[] |
serialFieldTags()
Returns an array of any @serialField tags for this field. |
String |
toString()
The (non-qualified), simple identifier for the field. |
com.sun.javadoc.Type |
type()
The type of the field, as a doclet object. |
| 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, isIncluded, isInterface, isMethod, 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.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, isIncluded, isInterface, isMethod, isOrdinaryClass, position, seeTags, setRawCommentText, tags, tags |
| Field Detail |
private JFieldDeclarationType jfield
private CField field
private com.sun.javadoc.Type type
| Constructor Detail |
public MjFieldDoc(MjClassDoc container,
CField field)
container - the object representing the class that contains this fieldfield - the MJC construct representing the field
public MjFieldDoc(MjClassDoc container,
JFieldDeclarationType jfield)
container - the object representing the class that contains this fieldjfield - the MJC construct representing the field| Method Detail |
public String name()
name in interface com.sun.javadoc.Docpublic String toString()
toString in class Objectprotected String compareString()
compareString in class MjDocpublic com.sun.javadoc.Type type()
type in interface com.sun.javadoc.FieldDocpublic JFieldDeclarationType jfield()
public boolean isField()
isField in interface com.sun.javadoc.DocisField in class MjDocpublic boolean isTransient()
isTransient in interface com.sun.javadoc.FieldDocpublic boolean isVolatile()
isVolatile in interface com.sun.javadoc.FieldDocpublic com.sun.javadoc.SerialFieldTag[] serialFieldTags()
serialFieldTags in interface com.sun.javadoc.FieldDocpublic long longModifiers()
Constants).
public String qualifiedName()
qualifiedName in interface com.sun.javadoc.ProgramElementDocpublic Object constantValue()
constantValue in interface com.sun.javadoc.FieldDocpublic String constantValueExpression()
constantValueExpression in interface com.sun.javadoc.FieldDoc
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||