java.beans
Class MethodDescriptor

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.beans.FeatureDescriptor sample code for java.beans.FeatureDescriptor definition code for java.beans.FeatureDescriptor 
      extended by java.beans.MethodDescriptor

public class MethodDescriptor
extends FeatureDescriptor sample code for java.beans.FeatureDescriptor definition code for java.beans.FeatureDescriptor

A MethodDescriptor describes a particular method that a Java Bean supports for external access from other components.


Constructor Summary
MethodDescriptor sample code for java.beans.MethodDescriptor.MethodDescriptor(java.lang.reflect.Method) definition code for java.beans.MethodDescriptor.MethodDescriptor(java.lang.reflect.Method) (Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  method)
          Constructs a MethodDescriptor from a Method.
MethodDescriptor sample code for java.beans.MethodDescriptor.MethodDescriptor(java.lang.reflect.Method, java.beans.ParameterDescriptor[]) definition code for java.beans.MethodDescriptor.MethodDescriptor(java.lang.reflect.Method, java.beans.ParameterDescriptor[]) (Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  method, ParameterDescriptor sample code for java.beans.ParameterDescriptor definition code for java.beans.ParameterDescriptor [] parameterDescriptors)
          Constructs a MethodDescriptor from a Method providing descriptive information for each of the method's parameters.
 
Method Summary
 Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method getMethod sample code for java.beans.MethodDescriptor.getMethod() definition code for java.beans.MethodDescriptor.getMethod() ()
          Gets the method that this MethodDescriptor encapsualtes.
 ParameterDescriptor sample code for java.beans.ParameterDescriptor definition code for java.beans.ParameterDescriptor [] getParameterDescriptors sample code for java.beans.MethodDescriptor.getParameterDescriptors() definition code for java.beans.MethodDescriptor.getParameterDescriptors() ()
          Gets the ParameterDescriptor for each of this MethodDescriptor's method's parameters.
 
Methods inherited from class java.beans.FeatureDescriptor sample code for java.beans.FeatureDescriptor definition code for java.beans.FeatureDescriptor
attributeNames sample code for java.beans.FeatureDescriptor.attributeNames() definition code for java.beans.FeatureDescriptor.attributeNames() , getDisplayName sample code for java.beans.FeatureDescriptor.getDisplayName() definition code for java.beans.FeatureDescriptor.getDisplayName() , getName sample code for java.beans.FeatureDescriptor.getName() definition code for java.beans.FeatureDescriptor.getName() , getShortDescription sample code for java.beans.FeatureDescriptor.getShortDescription() definition code for java.beans.FeatureDescriptor.getShortDescription() , getValue sample code for java.beans.FeatureDescriptor.getValue(java.lang.String) definition code for java.beans.FeatureDescriptor.getValue(java.lang.String) , isExpert sample code for java.beans.FeatureDescriptor.isExpert() definition code for java.beans.FeatureDescriptor.isExpert() , isHidden sample code for java.beans.FeatureDescriptor.isHidden() definition code for java.beans.FeatureDescriptor.isHidden() , isPreferred sample code for java.beans.FeatureDescriptor.isPreferred() definition code for java.beans.FeatureDescriptor.isPreferred() , setDisplayName sample code for java.beans.FeatureDescriptor.setDisplayName(java.lang.String) definition code for java.beans.FeatureDescriptor.setDisplayName(java.lang.String) , setExpert sample code for java.beans.FeatureDescriptor.setExpert(boolean) definition code for java.beans.FeatureDescriptor.setExpert(boolean) , setHidden sample code for java.beans.FeatureDescriptor.setHidden(boolean) definition code for java.beans.FeatureDescriptor.setHidden(boolean) , setName sample code for java.beans.FeatureDescriptor.setName(java.lang.String) definition code for java.beans.FeatureDescriptor.setName(java.lang.String) , setPreferred sample code for java.beans.FeatureDescriptor.setPreferred(boolean) definition code for java.beans.FeatureDescriptor.setPreferred(boolean) , setShortDescription sample code for java.beans.FeatureDescriptor.setShortDescription(java.lang.String) definition code for java.beans.FeatureDescriptor.setShortDescription(java.lang.String) , setValue sample code for java.beans.FeatureDescriptor.setValue(java.lang.String, java.lang.Object) definition code for java.beans.FeatureDescriptor.setValue(java.lang.String, java.lang.Object)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

MethodDescriptor sample code for java.beans.MethodDescriptor(java.lang.reflect.Method) definition code for java.beans.MethodDescriptor(java.lang.reflect.Method)

public MethodDescriptor(Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  method)
Constructs a MethodDescriptor from a Method.

Parameters:
method - The low-level method information.

MethodDescriptor sample code for java.beans.MethodDescriptor(java.lang.reflect.Method, java.beans.ParameterDescriptor[]) definition code for java.beans.MethodDescriptor(java.lang.reflect.Method, java.beans.ParameterDescriptor[])

public MethodDescriptor(Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  method,
                        ParameterDescriptor sample code for java.beans.ParameterDescriptor definition code for java.beans.ParameterDescriptor [] 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 sample code for java.beans.MethodDescriptor.getMethod() definition code for java.beans.MethodDescriptor.getMethod()

public Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method  getMethod()
Gets the method that this MethodDescriptor encapsualtes.

Returns:
The low-level description of the method

getParameterDescriptors sample code for java.beans.MethodDescriptor.getParameterDescriptors() definition code for java.beans.MethodDescriptor.getParameterDescriptors()

public ParameterDescriptor sample code for java.beans.ParameterDescriptor definition code for java.beans.ParameterDescriptor [] 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.