MethodDescriptor (Java 2 Platform SE 5.0) (original) (raw)


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 aMethod.
[MethodDescriptor](../../java/beans/MethodDescriptor.html#MethodDescriptor%28java.lang.reflect.Method, java.beans.ParameterDescriptor[]%29)(Method method,ParameterDescriptor[] parameterDescriptors) Constructs a MethodDescriptor from aMethod 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](../../java/beans/FeatureDescriptor.html#setValue%28java.lang.String, java.lang.Object%29)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, [wait](../../java/lang/Object.html#wait%28long, int%29)
Constructor Detail

MethodDescriptor

public MethodDescriptor(Method method)

Constructs a MethodDescriptor from aMethod.

Parameters:

method - The low-level method information.


MethodDescriptor

public MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)

Constructs a MethodDescriptor from aMethod 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.



Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.