java.beans

Class MethodDescriptor

public class MethodDescriptor extends FeatureDescriptor

MethodDescriptor describes information about a JavaBeans method. It's a fairly straightforward class (at least something in this package is straightforward!).

Since: JDK1.1

Constructor Summary
MethodDescriptor(Method m)
Create a new MethodDescriptor.
MethodDescriptor(Method m, ParameterDescriptor[] parameterDescriptors)
Create a new MethodDescriptor.
Method Summary
MethodgetMethod()
Get the method this MethodDescriptor represents.
ParameterDescriptor[]getParameterDescriptors()
Get the parameter descriptors from this method.

Constructor Detail

MethodDescriptor

public MethodDescriptor(Method m)
Create a new MethodDescriptor. This method sets the name to the name of the method (Method.getName()).

Parameters: m the method it will represent.

MethodDescriptor

public MethodDescriptor(Method m, ParameterDescriptor[] parameterDescriptors)
Create a new MethodDescriptor. This method sets the name to the name of the method (Method.getName()).

Parameters: m the method it will represent. parameterDescriptors descriptions of the parameters (especially names).

Method Detail

getMethod

public Method getMethod()
Get the method this MethodDescriptor represents. *

getParameterDescriptors

public ParameterDescriptor[] getParameterDescriptors()
Get the parameter descriptors from this method. Since MethodDescriptor has no way of determining what the parameter names were, this defaults to null.