MethodDescriptor (Java Platform SE 8 ) (original) (raw)
- 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.
Constructor Summary
Constructors
Constructor Description MethodDescriptor(Method method) Constructs a MethodDescriptor from aMethod. MethodDescriptor(Method method,ParameterDescriptor[] parameterDescriptors) Constructs a MethodDescriptor from aMethod providing descriptive information for each of the method's parameters. Method Summary
All Methods Instance Methods Concrete 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 inherited from class java.beans.[FeatureDescriptor](../../java/beans/FeatureDescriptor.html "class in java.beans") `[attributeNames](../../java/beans/FeatureDescriptor.html#attributeNames--), [getDisplayName](../../java/beans/FeatureDescriptor.html#getDisplayName--), [getName](../../java/beans/FeatureDescriptor.html#getName--), [getShortDescription](../../java/beans/FeatureDescriptor.html#getShortDescription--), [getValue](../../java/beans/FeatureDescriptor.html#getValue-java.lang.String-), [isExpert](../../java/beans/FeatureDescriptor.html#isExpert--), [isHidden](../../java/beans/FeatureDescriptor.html#isHidden--), [isPreferred](../../java/beans/FeatureDescriptor.html#isPreferred--), [setDisplayName](../../java/beans/FeatureDescriptor.html#setDisplayName-java.lang.String-), [setExpert](../../java/beans/FeatureDescriptor.html#setExpert-boolean-), [setHidden](../../java/beans/FeatureDescriptor.html#setHidden-boolean-), [setName](../../java/beans/FeatureDescriptor.html#setName-java.lang.String-), [setPreferred](../../java/beans/FeatureDescriptor.html#setPreferred-boolean-), [setShortDescription](../../java/beans/FeatureDescriptor.html#setShortDescription-java.lang.String-), [setValue](../../java/beans/FeatureDescriptor.html#setValue-java.lang.String-java.lang.Object-), [toString](../../java/beans/FeatureDescriptor.html#toString--)` * ### Methods inherited from class java.lang.[Object](../../java/lang/Object.html "class in java.lang") `[clone](../../java/lang/Object.html#clone--), [equals](../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../java/lang/Object.html#finalize--), [getClass](../../java/lang/Object.html#getClass--), [hashCode](../../java/lang/Object.html#hashCode--), [notify](../../java/lang/Object.html#notify--), [notifyAll](../../java/lang/Object.html#notifyAll--), [wait](../../java/lang/Object.html#wait--), [wait](../../java/lang/Object.html#wait-long-), [wait](../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### MethodDescriptor public MethodDescriptor([Method](../../java/lang/reflect/Method.html "class in java.lang.reflect") method) Constructs a `MethodDescriptor` from a`Method`. Parameters: `method` \- The low-level method information. * #### MethodDescriptor public MethodDescriptor([Method](../../java/lang/reflect/Method.html "class in java.lang.reflect") method, [ParameterDescriptor](../../java/beans/ParameterDescriptor.html "class in java.beans")[] 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.
Method Detail
* #### getMethod public [Method](../../java/lang/reflect/Method.html "class in java.lang.reflect") getMethod() Gets the method that this MethodDescriptor encapsulates. Returns: The low-level description of the method * #### getParameterDescriptors public [ParameterDescriptor](../../java/beans/ParameterDescriptor.html "class in java.beans")[] 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.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.