|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.language.reflection.MethodSignature
public class MethodSignature
A method descriptor represents the parameters that the method takes and the value that it returns. It is a series of characters generated by the grammar described at The Java Virtual Machine Specification .
(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 Summary | |
---|---|
MethodSignature(Constructor constructor)
constructs a new MethodSignature |
|
MethodSignature(Method method)
constructs a new MethodSignature |
|
MethodSignature(String value)
constructs a new MethodSignature |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodSignature(String value)
value
- the descriptorpublic MethodSignature(Method method)
method
- the methodpublic MethodSignature(Constructor constructor)
constructor
- the constructorMethod Detail |
---|
public 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 Object
Object.toString()
public static String getParameterDescriptor(String methodDescriptor)
methodDescriptor
- the methodDescriptor
public static Class[] getParameterTypes(String methodDescriptor) throws ClassNotFoundException
methodDescriptor
- the string
ClassNotFoundException
- on incomplete classPathpublic static String getReturnDescriptor(String methodDescriptor)
methodDescriptor
- the methodDescriptor
public static Class getReturnType(String methodDescriptor) throws ClassNotFoundException
methodDescriptor
- the returnDescriptor
ClassNotFoundException
- on incomplete classPath
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |