org.codehaus.metaclass.model
Class MethodDescriptor

java.lang.Object
  extended byorg.codehaus.metaclass.model.FeatureDescriptor
      extended byorg.codehaus.metaclass.model.MethodDescriptor
All Implemented Interfaces:
java.io.Serializable

public final class MethodDescriptor
extends FeatureDescriptor
implements java.io.Serializable

A descriptor that describes a Method. It contains information about;

Also associated with each method is a set of arbitrary Attributes that can be used to store extra information about method.

Version:
$Revision: 1.11 $ $Date: 2003/12/11 08:41:50 $
Author:
Peter Donald
See Also:
Serialized Form

Field Summary
static MethodDescriptor[] EMPTY_SET
          Constant for empty array of method descriptors.
 
Constructor Summary
MethodDescriptor(java.lang.String name, java.lang.String returnType, ParameterDescriptor[] parameters, Attribute[] declaredAttributes, Attribute[] attributes)
          Create a descriptor for a method.
 
Method Summary
 java.lang.String getName()
          Return the name of the method.
 ParameterDescriptor[] getParameters()
          Return the parameters associated with method.
 java.lang.String getReturnType()
          Return the return type of the method.
 
Methods inherited from class org.codehaus.metaclass.model.FeatureDescriptor
getAttributes, getDeclaredAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_SET

public static final MethodDescriptor[] EMPTY_SET
Constant for empty array of method descriptors.

Constructor Detail

MethodDescriptor

public MethodDescriptor(java.lang.String name,
                        java.lang.String returnType,
                        ParameterDescriptor[] parameters,
                        Attribute[] declaredAttributes,
                        Attribute[] attributes)
Create a descriptor for a method.

Parameters:
name - the name of the method
returnType - the return type of the method
parameters - the parameters of the method
declaredAttributes - the declared attributes
attributes - any attributes associated with method
Method Detail

getName

public java.lang.String getName()
Return the name of the method.

Returns:
the name of the method.

getReturnType

public java.lang.String getReturnType()
Return the return type of the method.

Returns:
the return type of the method.

getParameters

public ParameterDescriptor[] getParameters()
Return the parameters associated with method.

Returns:
the parameters associated with method.


Copyright © 2003-2004 Codehaus. All Rights Reserved.