# MethodDescriptor

public class **MethodDescriptor** extends [FeatureDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html)  
Describes a bean's method.

### Public Constructor Summary

|---|---|
|   | [MethodDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/MethodDescriptor.html#MethodDescriptor(java.lang.reflect.Method,%20java.beans.ParameterDescriptor[]))([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) method, [ParameterDescriptor\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html) parameterDescriptors) Constructs an instance with the given `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html` and `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html`s. |
|   | [MethodDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/MethodDescriptor.html#MethodDescriptor(java.lang.reflect.Method))([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) method) Constructs an instance with the given `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html`. |

### Public Method Summary

|---|---|
| [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) | [getMethod](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/MethodDescriptor.html#getMethod())() Gets the method. |
| [ParameterDescriptor\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html) | [getParameterDescriptors](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/MethodDescriptor.html#getParameterDescriptors())() Gets the parameter descriptors. |

### Inherited Method Summary

From class [java.beans.FeatureDescriptor](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html)

|---|---|
| [Enumeration](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Enumeration.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)\> | [attributeNames](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#attributeNames())() Enumerates the attribute names. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getDisplayName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getDisplayName())() Gets the display name or `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName()` if not set. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName())() Gets the name. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getShortDescription](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getShortDescription())() Gets the short description or `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getDisplayName()` if not set. |
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [getValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getValue(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributeName) Gets the value associated with the named attribute. |
| boolean | [isExpert](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#isExpert())() Indicates if this feature is an expert feature. |
| boolean | [isHidden](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#isHidden())() Indicates if this feature is hidden. |
| boolean | [isPreferred](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#isPreferred())() Indicates if this feature is preferred. |
| void | [setDisplayName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setDisplayName(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) displayName) Sets the display name. |
| void | [setExpert](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setExpert(boolean))(boolean expert) Sets the expert indicator. |
| void | [setHidden](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setHidden(boolean))(boolean hidden) Sets the hidden indicator. |
| void | [setName](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setName(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Sets the name. |
| void | [setPreferred](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setPreferred(boolean))(boolean preferred) Sets the preferred indicator. |
| void | [setShortDescription](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setShortDescription(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) text) Sets the short description. |
| void | [setValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#setValue(java.lang.String,%20java.lang.Object))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) attributeName, [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) value) Sets the value for the named attribute. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Public Constructors

#### public
**MethodDescriptor**
([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) method, [ParameterDescriptor\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html) parameterDescriptors)

<br />


Constructs an instance with the given `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html` and
`https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html`s. The `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName()` is set as the name
of the `method` passed.

<br />

##### Parameters

| method | The Method to set. |
| parameterDescriptors | An array of parameter descriptors. |
|---|---|

#### public
**MethodDescriptor**
([Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html) method)

<br />


Constructs an instance with the given `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html`. The
`https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/FeatureDescriptor.html#getName()` is set as the name of the `method`
passed.

<br />

##### Parameters

| method | The Method to set. |
|---|---|

## Public Methods

#### public [Method](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html)
**getMethod**
()

<br />


Gets the method.

<br />

##### Returns

- A `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/reflect/Method.html` instance.

#### public [ParameterDescriptor\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html)
**getParameterDescriptors**
()

<br />


Gets the parameter descriptors.

<br />

##### Returns

- An array of `https://developers.google.com/j2objc/javadoc/jre/reference/java/beans/ParameterDescriptor.html` instance or `null`.