Top Description Fields Constructors Methods
java.beans

public Class MethodDescriptor

extends FeatureDescriptor
Class Inheritance
Imports
java.lang.ref.Reference, .WeakReference, java.lang.reflect.Method, java.util.List, .ArrayList

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

Field Summary

Modifier and TypeField and Description
private final MethodRef
private ParameterDescriptor[]
private String[]
private List<WeakReference<Class<?>>>

Constructor Summary

AccessConstructor and Description
public
MethodDescriptor(Method
The low-level method information.
method
)

Constructs a MethodDescriptor from a Method.

public
MethodDescriptor(Method
The low-level method information.
method
,
ParameterDescriptor[]
Descriptive information for each of the method's parameters.
parameterDescriptors
)

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

pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public synchronized Method

Returns:

The low-level description of the method
getMethod
()

Gets the method that this MethodDescriptor encapsulates.

public ParameterDescriptor[]

Returns:

The locale-independent names of the parameters. May return a null array if the parameter names aren't known.
getParameterDescriptors
()

Gets the ParameterDescriptor for each of this MethodDescriptor's method's parameters.

pack-priv String[]
private synchronized Class<?>[]
private static Method
resolve(Method oldMethod, Method newMethod)

private synchronized void
setMethod(Method method)

private synchronized void
setParams(Class<?>[] param)

Inherited from java.beans.FeatureDescriptor:
appendToappendToappendToattributeNamesgetClass0getDisplayNamegetNamegetParameterTypesgetReturnTypegetShortDescriptiongetSoftReferencegetValuegetWeakReferenceisExpertisHiddenisPreferredisTransientsetClass0setDisplayNamesetExpertsetHiddensetNamesetPreferredsetShortDescriptionsetTransientsetValuetoString

Field Detail

methodRefback to summary
private final MethodRef methodRef
parameterDescriptorsback to summary
private ParameterDescriptor[] parameterDescriptors
paramNamesback to summary
private String[] paramNames
paramsback to summary
private List<WeakReference<Class<?>>> params

Constructor Detail

MethodDescriptorback to summary
public MethodDescriptor(Method method)

Constructs a MethodDescriptor from a Method.

Parameters
method:Method

The low-level method information.

MethodDescriptorback to summary
public MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)

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

Parameters
method:Method

The low-level method information.

parameterDescriptors:ParameterDescriptor[]

Descriptive information for each of the method's parameters.

MethodDescriptorback to summary
pack-priv MethodDescriptor(MethodDescriptor x, MethodDescriptor y)
MethodDescriptorback to summary
pack-priv MethodDescriptor(MethodDescriptor old)

Method Detail

appendToback to summary
pack-priv void appendTo(StringBuilder sb)

Overrides java.beans.FeatureDescriptor.appendTo.

getMethodback to summary
public synchronized Method getMethod()

Gets the method that this MethodDescriptor encapsulates.

Returns:Method

The low-level description of the method

getParameterDescriptorsback to summary
public ParameterDescriptor[] getParameterDescriptors()

Gets the ParameterDescriptor for each of this MethodDescriptor's method's parameters.

Returns:ParameterDescriptor[]

The locale-independent names of the parameters. May return a null array if the parameter names aren't known.

getParamNamesback to summary
pack-priv String[] getParamNames()
getParamsback to summary
private synchronized Class<?>[] getParams()
resolveback to summary
private static Method resolve(Method oldMethod, Method newMethod)
setMethodback to summary
private synchronized void setMethod(Method method)
setParamsback to summary
private synchronized void setParams(Class<?>[] param)