Interface Parameter
@Deprecated(since="9", forRemoval=true) public interface Parameter
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.
Methods
Modifier and Type | Method | Description |
---|---|---|
AnnotationDesc[] | annotations() | Deprecated, for removal: This API element is subject to removal in a future version. Get the annotations of this parameter. |
String | name() | Deprecated, for removal: This API element is subject to removal in a future version. Get local name of this parameter. |
String | toString() | Deprecated, for removal: This API element is subject to removal in a future version. Returns a string representation of the parameter. |
Type | type() | Deprecated, for removal: This API element is subject to removal in a future version. Get the type of this parameter. |
String | typeName() | Deprecated, for removal: This API element is subject to removal in a future version. Get type name of this parameter. |
Methods
type
Type type()
Get the type of this parameter.
- Returns:
- the type of this parameter.
name
String name()
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()
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()
Returns a string representation of the parameter.
For example if parameter is the short 'index', returns "short index".
annotations
AnnotationDesc[] annotations()
Get the annotations of this parameter. Return an empty array if there are none.
- Returns:
- the annotations of this parameter.
- Since:
- 1.5
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.javadoc/com/sun/javadoc/Parameter.html