Module jdk.javadoc

Interface Parameter


  • @Deprecated
    public interface Parameter
    Deprecated.
    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.
    Parameter information. This includes a parameter type and parameter name.
    • Method Detail

      • type

        Type type()
        Deprecated.
        Get the type of this parameter.
        Returns:
        the type of this parameter.
      • name

        String name()
        Deprecated.
        Get local name of this parameter. For example if parameter is the short 'index', returns "index".
        Returns:
        the name of this parameter as a string.
      • typeName

        String typeName()
        Deprecated.
        Get type name of this parameter. For example if parameter is the short 'index', returns "short".

        This method returns a complete string representation of the type, including the dimensions of arrays and the type arguments of parameterized types. Names are qualified.

        Returns:
        a complete string representation of the type.
      • toString

        String toString()
        Deprecated.
        Returns a string representation of the parameter.

        For example if parameter is the short 'index', returns "short index".

        Overrides:
        toString in class Object
        Returns:
        type and parameter name of this parameter.
      • annotations

        AnnotationDesc[] annotations()
        Deprecated.
        Get the annotations of this parameter. Return an empty array if there are none.
        Returns:
        the annotations of this parameter.
        Since:
        1.5