IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
 
[Sommaire]  [Top 50]  [F.A.Q.]  [ Java SE ]  [ Java EE ]  [Javadoc standard]  [Contact]
[ 1.4.2 ]  [ 5.0 ]  [ 6.0
Rechercher   
Dans
Options   sensible à la casse
étendre la recherche aux descriptions
Préférences
fr en 
 
Moteurs de recherche
JavaTM 2 Platform Std. Ed. v1.6.0

java.beans
Class MethodDescriptor

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

public class MethodDescriptor
extends FeatureDescriptor

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


Constructor Summary
MethodDescriptor(Method method)
          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 getMethod()
          Gets the method that this MethodDescriptor encapsualtes.
 ParameterDescriptor[] getParameterDescriptors()
          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 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.

Copyright 2003 Sun Microsystems, Inc. All rights reserved