public class MethodSignature extends Object implements Serializable
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
| Constructor and Description |
|---|
MethodSignature(Constructor constructor)
constructs a new MethodSignature
|
MethodSignature(Method method)
constructs a new MethodSignature
|
MethodSignature(String value)
constructs a new MethodSignature
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParameterDescriptor() |
static String |
getParameterDescriptor(String methodDescriptor) |
Class[] |
getParameterTypes()
returns the parameterTypes
|
static Class[] |
getParameterTypes(String methodDescriptor)
returns the parameterTypes
|
String |
getReturnDescriptor() |
static String |
getReturnDescriptor(String methodDescriptor) |
Class |
getReturnType()
returns the returnType of this methodDescriptor
|
static Class |
getReturnType(String methodDescriptor)
returns the returnType of this methodDescriptor
|
String |
toString() |
public MethodSignature(String value)
value - the descriptorpublic MethodSignature(Method method)
method - the methodpublic MethodSignature(Constructor constructor)
constructor - the constructorpublic String getParameterDescriptor()
public Class[] getParameterTypes() throws ClassNotFoundException
ClassNotFoundException - on incomplete classPathpublic String getReturnDescriptor()
public Class getReturnType() throws ClassNotFoundException
ClassNotFoundException - on incomplete classPathpublic String toString()
toString in class ObjectObject.toString()public static String getParameterDescriptor(String methodDescriptor)
methodDescriptor - the methodDescriptorpublic static Class[] getParameterTypes(String methodDescriptor) throws ClassNotFoundException
methodDescriptor - the stringClassNotFoundException - on incomplete classPathpublic static String getReturnDescriptor(String methodDescriptor)
methodDescriptor - the methodDescriptorpublic static Class getReturnType(String methodDescriptor) throws ClassNotFoundException
methodDescriptor - the returnDescriptorClassNotFoundException - on incomplete classPathCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.