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

Interface Parameter


  • @Deprecated(since="9",
                forRemoval=true)
    public interface Parameter
    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.
    参数信息。 这包括参数类型和参数名称。
    • 方法摘要

      所有方法  实例方法 抽象方法  弃用的方法 
      变量和类型 方法 描述
      AnnotationDesc[] annotations()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      获取此参数的注释。
      String name()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      获取此参数的本地名称。
      String toString()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      返回参数的字符串表示形式。
      Type type()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      获取此参数的类型。
      String typeName()
      不推荐使用,要删除:此API元素将在以后的版本中删除。
      获取此参数的类型名称。
    • 方法详细信息

      • type

        Type type()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取此参数的类型。
        结果
        此参数的类型。
      • name

        String name()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取此参数的本地名称。 例如,如果参数是短'索引',则返回“index”。
        结果
        此参数的名称为字符串。
      • typeName

        String typeName()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取此参数的类型名称。 例如,如果参数是短'索引',则返回“short”。

        此方法返回该类型的完整字符串表示形式,包括数组的维度和参数化类型的类型参数。 姓名合格。

        结果
        该类型的完整字符串表示形式。
      • toString

        String toString()
        Deprecated, for removal: This API element is subject to removal in a future version.
        返回参数的字符串表示形式。

        例如,如果参数是短'索引',则返回“短索引”。

        重写:
        toString在类 Object
        结果
        此参数的类型和参数名称。
      • annotations

        AnnotationDesc[] annotations()
        Deprecated, for removal: This API element is subject to removal in a future version.
        获取此参数的注释。 如果没有,则返回一个空数组。
        结果
        此参数的注释。
        从以下版本开始:
        1.5