public class MethodDescriptor extends FeatureDescriptor
Constructor and Description |
---|
MethodDescriptor(java.lang.reflect.Method method)
Constructs an instance with the given
Method . |
MethodDescriptor(java.lang.reflect.Method method,
ParameterDescriptor[] parameterDescriptors)
Constructs an instance with the given
Method and
ParameterDescriptor s. |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getMethod()
Gets the method.
|
ParameterDescriptor[] |
getParameterDescriptors()
Gets the parameter descriptors.
|
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
public MethodDescriptor(java.lang.reflect.Method method, ParameterDescriptor[] parameterDescriptors)
Constructs an instance with the given Method
and
ParameterDescriptor
s. The FeatureDescriptor.getName()
is set as the name
of the method
passed.
method
- The Method to set.parameterDescriptors
- An array of parameter descriptors.public MethodDescriptor(java.lang.reflect.Method method)
Constructs an instance with the given Method
. The
FeatureDescriptor.getName()
is set as the name of the method
passed.
method
- The Method to set.public java.lang.reflect.Method getMethod()
Gets the method.
Method
instance.public ParameterDescriptor[] getParameterDescriptors()
Gets the parameter descriptors.
ParameterDescriptor
instance or
null
.