Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans

Class MethodDescriptor

java.lang.Object
|
+--java.beans.FeatureDescriptor
   |
   +--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:Author:

Constructor Summary

MethodDescriptor(java.lang.reflect.Method m)

Create a new MethodDescriptor.
MethodDescriptor(java.lang.reflect.Method m, java.beans.ParameterDescriptor parameterDescriptors)

Create a new MethodDescriptor.

Method Summary

java.lang.reflect.MethodgetMethod()

Get the method this MethodDescriptor represents.
java.beans.ParameterDescriptor[]getParameterDescriptors()

Get the parameter descriptors from this method.

Constructor Details

MethodDescriptor

public MethodDescriptor(java.lang.reflect.Method m)

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

Parameters:


MethodDescriptor

public MethodDescriptor(java.lang.reflect.Method m, java.beans.ParameterDescriptor parameterDescriptors)

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

Parameters:


Method Details

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.