MethodDescriptor (Java SE 13 & JDK 13 )
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
-
Constructor Summary
Constructors Constructor Description MethodDescriptor(Method method)Constructs a
MethodDescriptorfrom aMethod.MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)Constructs a
MethodDescriptorfrom aMethodproviding descriptive information for each of the method's parameters. -
Method Summary
Modifier and Type Method Description MethodgetMethod()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
-
Constructor Details
-
MethodDescriptor
public MethodDescriptor(Method method)
Constructs a
MethodDescriptorfrom aMethod.- Parameters:
method- The low-level method information.
-
MethodDescriptor
Constructs a
MethodDescriptorfrom aMethodproviding 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.
-
-
Method Details
-
getMethod
public Method getMethod()
Gets the method that this MethodDescriptor encapsulates.
- Returns:
- The low-level description of the method
-
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.
-
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2019, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.