com.googlecode.openbeans
Class MethodDescriptor

java.lang.Object
  extended by com.googlecode.openbeans.FeatureDescriptor
      extended by com.googlecode.openbeans.MethodDescriptor

public class MethodDescriptor
extends FeatureDescriptor

Describes a bean's method.


Constructor Summary
MethodDescriptor(Method method)
           Constructs an instance with the given Method.
MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)
           Constructs an instance with the given Method and ParameterDescriptors.
 
Method Summary
 Method getMethod()
           Gets the method.
 ParameterDescriptor[] getParameterDescriptors()
           Gets the parameter descriptors.
 
Methods inherited from class com.googlecode.openbeans.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,
                        ParameterDescriptor[] parameterDescriptors)

Constructs an instance with the given Method and ParameterDescriptors. The FeatureDescriptor.getName() is set as the name of the method passed.

Parameters:
method - The Method to set.
parameterDescriptors - An array of parameter descriptors.

MethodDescriptor

public MethodDescriptor(Method method)

Constructs an instance with the given Method. The FeatureDescriptor.getName() is set as the name of the method passed.

Parameters:
method - The Method to set.
Method Detail

getMethod

public Method getMethod()

Gets the method.

Returns:
A Method instance.

getParameterDescriptors

public ParameterDescriptor[] getParameterDescriptors()

Gets the parameter descriptors.

Returns:
An array of ParameterDescriptor instance or null.


Copyright © 2013. All Rights Reserved.