模块  jdk.javadoc
软件包  com.sun.javadoc

Interface FieldDoc

  • All Superinterfaces:
    Comparable<Object>DocMemberDocProgramElementDoc

    @Deprecated(since="9",
                forRemoval=true)
    public interface FieldDoc
    extends MemberDoc
    Deprecated, for removal: This API element is subject to removal in a future version.
    The declarations in this package have been superseded by those in the package jdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.
    表示java类中的字段。
    从以下版本开始:
    1.2
    另请参见:
    MemberDoc
    • 方法详细信息

      • type

        Type type()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取此字段的类型。
        结果
        这个字段的类型。
      • isTransient

        boolean isTransient()
        Deprecated, for removal: This API element is subject to removal in a future version.
        如果此字段是瞬态的,则返回true
        结果
        如果此字段是暂时的,则为true
      • isVolatile

        boolean isVolatile()
        Deprecated, for removal: This API element is subject to removal in a future version.
        如果此字段是volatile,则返回true
        结果
        如果此字段不稳定,则为true
      • serialFieldTags

        SerialFieldTag[] serialFieldTags()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回此FieldDoc项中的serialField标记。
        结果
        包含所有 @serialField标签的 SerialFieldTag对象的数组。
      • constantValue

        Object constantValue()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取常量字段的值。
        结果
        常数字段的值。 如果对象具有基本类型,则该值自动包装在对象中。 如果该字段不是常量,则返回null。
      • constantValueExpression

        String constantValueExpression()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取常量字段的值。
        结果
        Java语言表达式的文本,其值是常量的值。 该表达式不使用原始文字以外的标识符。 如果该字段不是常量,则返回null。