java.beans
Class MethodDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by java.beans.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
 Method getMethod()
          Get the method this MethodDescriptor represents.
 ParameterDescriptor[] getParameterDescriptors()
          Get the parameter descriptors from this method.
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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.


getMethod

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