Class FieldDocImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
-
- gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
-
- gw.gosudoc.com.sun.tools.javadoc.main.MemberDocImpl
-
- gw.gosudoc.com.sun.tools.javadoc.main.FieldDocImpl
-
- All Implemented Interfaces:
Doc,FieldDoc,MemberDoc,ProgramElementDoc,java.lang.Comparable<java.lang.Object>
@Deprecated public class FieldDocImpl extends MemberDocImpl implements FieldDoc
Deprecated.Represents a field in a java class.This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.2
- See Also:
MemberDocImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameDeprecated.private java.lang.StringqualifiedNameDeprecated.protected com.sun.tools.javac.code.Symbol.VarSymbolsymDeprecated.-
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
lineMap, tree
-
Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
documentation, env, treePath
-
-
Constructor Summary
Constructors Constructor Description FieldDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.VarSymbol sym)Deprecated.Constructor.FieldDocImpl(DocEnv env, com.sun.tools.javac.code.Symbol.VarSymbol sym, com.sun.source.util.TreePath treePath)Deprecated.Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectconstantValue()Deprecated.Get the value of a constant field.java.lang.StringconstantValueExpression()Deprecated.Get the value of a constant field.(package private) static java.lang.StringconstantValueExpression(java.lang.Object cb)Deprecated.A static version of the above.protected com.sun.tools.javac.code.Symbol.ClassSymbolgetContainingClass()Deprecated.Identify the containing classprotected longgetFlags()Deprecated.Returns the flags in terms of javac's flagsbooleanisEnumConstant()Deprecated.Is this Doc item an enum constant? (For legacy doclets, return false.)booleanisField()Deprecated.Is this Doc item a field (but not an enum constant?booleanisIncluded()Deprecated.Return true if this field is included in the active set.private static booleanisPrintableAscii(char c)Deprecated.booleanisSynthetic()Deprecated.Returns true if this field was synthesized by the compiler.booleanisTransient()Deprecated.Return true if this field is transientbooleanisVolatile()Deprecated.Return true if this field is volatilejava.lang.Stringname()Deprecated.Returns the name of this Doc item.SourcePositionposition()Deprecated.Return the source position of the entity, or null if no position is available.java.lang.StringqualifiedName()Deprecated.Returns the qualified name of this Doc item.SerialFieldTag[]serialFieldTags()Deprecated.Return the serialField tags in this FieldDocImpl item.private static voidsourceChar(char c, java.lang.StringBuilder buf)Deprecated.private static java.lang.StringsourceForm(byte c)Deprecated.private static java.lang.StringsourceForm(char c)Deprecated.private static java.lang.StringsourceForm(double v, char suffix)Deprecated.private static java.lang.StringsourceForm(java.lang.String s)Deprecated.Typetype()Deprecated.Get type of this field.private static voidunicodeEscape(char c, java.lang.StringBuilder buf)Deprecated.-
Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.ProgramElementDocImpl
annotations, containingClass, containingPackage, generateKey, getModifiers, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, setTreePath
-
Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
comment, commentText, compareTo, documentation, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isError, isException, isInterface, isMethod, isOrdinaryClass, key, readHTMLDocumentation, seeTags, setRawCommentText, tags, tags, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.gosudoc.com.sun.javadoc.Doc
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isError, isException, isInterface, isMethod, isOrdinaryClass, seeTags, setRawCommentText, tags, tags
-
Methods inherited from interface gw.gosudoc.com.sun.javadoc.ProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier
-
-
-
-
Method Detail
-
getFlags
protected long getFlags()
Deprecated.Returns the flags in terms of javac's flags- Specified by:
getFlagsin classProgramElementDocImpl
-
getContainingClass
protected com.sun.tools.javac.code.Symbol.ClassSymbol getContainingClass()
Deprecated.Identify the containing class- Specified by:
getContainingClassin classProgramElementDocImpl
-
type
public Type type()
Deprecated.Get type of this field.
-
constantValue
public java.lang.Object constantValue()
Deprecated.Get the value of a constant field.- Specified by:
constantValuein interfaceFieldDoc- Returns:
- the value of a constant field. The value is automatically wrapped in an object if it has a primitive type. If the field is not constant, returns null.
-
constantValueExpression
public java.lang.String constantValueExpression()
Deprecated.Get the value of a constant field.- Specified by:
constantValueExpressionin interfaceFieldDoc- Returns:
- the text of a Java language expression whose value is the value of the constant. The expression uses no identifiers other than primitive literals. If the field is not constant, returns null.
-
constantValueExpression
static java.lang.String constantValueExpression(java.lang.Object cb)
Deprecated.A static version of the above.
-
sourceForm
private static java.lang.String sourceForm(double v, char suffix)Deprecated.
-
sourceForm
private static java.lang.String sourceForm(char c)
Deprecated.
-
sourceForm
private static java.lang.String sourceForm(byte c)
Deprecated.
-
sourceForm
private static java.lang.String sourceForm(java.lang.String s)
Deprecated.
-
sourceChar
private static void sourceChar(char c, java.lang.StringBuilder buf)Deprecated.
-
unicodeEscape
private static void unicodeEscape(char c, java.lang.StringBuilder buf)Deprecated.
-
isPrintableAscii
private static boolean isPrintableAscii(char c)
Deprecated.
-
isIncluded
public boolean isIncluded()
Deprecated.Return true if this field is included in the active set.- Specified by:
isIncludedin interfaceDoc- Specified by:
isIncludedin classDocImpl- Returns:
- true if this Doc item is included in the result set.
-
isField
public boolean isField()
Deprecated.Is this Doc item a field (but not an enum constant?
-
isEnumConstant
public boolean isEnumConstant()
Deprecated.Is this Doc item an enum constant? (For legacy doclets, return false.)- Specified by:
isEnumConstantin interfaceDoc- Overrides:
isEnumConstantin classDocImpl- Returns:
- true if it represents an enum constant
-
isTransient
public boolean isTransient()
Deprecated.Return true if this field is transient- Specified by:
isTransientin interfaceFieldDoc- Returns:
- true if this field is transient
-
isVolatile
public boolean isVolatile()
Deprecated.Return true if this field is volatile- Specified by:
isVolatilein interfaceFieldDoc- Returns:
- true if this field is volatile
-
isSynthetic
public boolean isSynthetic()
Deprecated.Returns true if this field was synthesized by the compiler.- Specified by:
isSyntheticin interfaceMemberDoc- Specified by:
isSyntheticin classMemberDocImpl- Returns:
- true if this member was synthesized by the compiler.
-
serialFieldTags
public SerialFieldTag[] serialFieldTags()
Deprecated.Return the serialField tags in this FieldDocImpl item.- Specified by:
serialFieldTagsin interfaceFieldDoc- Returns:
- an array of SerialFieldTagImpl containing all
@serialFieldtags.
-
name
public java.lang.String name()
Deprecated.Description copied from class:DocImplReturns the name of this Doc item.
-
qualifiedName
public java.lang.String qualifiedName()
Deprecated.Description copied from class:DocImplReturns the qualified name of this Doc item.- Specified by:
qualifiedNamein interfaceProgramElementDoc- Specified by:
qualifiedNamein classDocImpl- Returns:
- the name
-
position
public SourcePosition position()
Deprecated.Return the source position of the entity, or null if no position is available.
-
-