Class MethodDescriptor
- java.lang.Object
-
- java.beans.FeatureDescriptor
-
- java.beans.MethodDescriptor
public class MethodDescriptor extends FeatureDescriptor
A MethodDescriptor describes a particular method that a Java Bean supports for external access from other components.
- Since:
- 1.1
Constructors
Constructor | Description |
---|---|
MethodDescriptor(Method method) | Constructs a |
MethodDescriptor(Method method,
ParameterDescriptor[] parameterDescriptors) | Constructs a |
Methods
Modifier and Type | Method | Description |
---|---|---|
Method | getMethod() | Gets the method that this MethodDescriptor encapsulates. |
ParameterDescriptor[] | getParameterDescriptors() | Gets the ParameterDescriptor for each of this MethodDescriptor's method's parameters. |
Methods declared in class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructors
MethodDescriptor
public MethodDescriptor(Method method)
Constructs a MethodDescriptor
from a Method
.
- Parameters:
-
method
- The low-level method information.
MethodDescriptor
public MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)
Constructs a MethodDescriptor
from a Method
providing descriptive information for each of the method's parameters.
- Parameters:
-
method
- The low-level method information. -
parameterDescriptors
- Descriptive information for each of the method's parameters.
Methods
getMethod
public Method getMethod()
Gets the method that this MethodDescriptor encapsulates.
- Returns:
- The low-level description of the method
getParameterDescriptors
public ParameterDescriptor[] getParameterDescriptors()
Gets the ParameterDescriptor for each of this MethodDescriptor's method's parameters.
- Returns:
- The locale-independent names of the parameters. May return a null array if the parameter names aren't known.
© 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/java.desktop/java/beans/MethodDescriptor.html