This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.beans
class MethodDescriptor

java.lang.Object extended by java.beans.FeatureDescriptor extended by java.beans.MethodDescriptor

Most common way to construct:

Method m = …;

MethodDescriptor md = new MethodDescriptor(m);

Based on 10 examples


public class MethodDescriptor
extends FeatureDescriptor

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


Constructor Summary

          Constructs a MethodDescriptor from a Method.
MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)

          Constructs a MethodDescriptor from a Method providing descriptive information for each of the method's parameters.
 
Method Summary
 Method

          Gets the method that this MethodDescriptor encapsualtes.
 ParameterDescriptor[]

          Gets the ParameterDescriptor for each of this MethodDescriptor's method's parameters.
 
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 method)
Constructs a MethodDescriptor from a Method.

Parameters:
method - The low-level method information.

MethodDescriptor

public MethodDescriptor(Method method,
                        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

public synchronized Method getMethod()
Gets the method that this MethodDescriptor encapsualtes.

Returns:
The low-level description of the method

getParameterDescriptors

public 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.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.