|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.language.reflection.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 2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Constructor Summary | |
MethodSignature(java.lang.reflect.Constructor constructor)
constructs a new MethodSignature |
|
MethodSignature(java.lang.reflect.Method method)
constructs a new MethodSignature |
|
MethodSignature(java.lang.String value)
constructs a new MethodSignature |
|
| Method Summary | |
java.lang.String |
getParameterDescriptor()
|
static java.lang.String |
getParameterDescriptor(java.lang.String methodDescriptor)
|
java.lang.Class[] |
getParameterTypes()
returns the parameterTypes |
static java.lang.Class[] |
getParameterTypes(java.lang.String methodDescriptor)
returns the parameterTypes |
java.lang.String |
getReturnDescriptor()
|
static java.lang.String |
getReturnDescriptor(java.lang.String methodDescriptor)
|
java.lang.Class |
getReturnType()
returns the returnType of this methodDescriptor |
static java.lang.Class |
getReturnType(java.lang.String methodDescriptor)
returns the returnType of this methodDescriptor |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MethodSignature(java.lang.String value)
value - the descriptorpublic MethodSignature(java.lang.reflect.Method method)
method - the methodpublic MethodSignature(java.lang.reflect.Constructor constructor)
constructor - the constructor| Method Detail |
public java.lang.String getParameterDescriptor()
public java.lang.Class[] getParameterTypes()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - on incomplete classPathpublic java.lang.String getReturnDescriptor()
public java.lang.Class getReturnType()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - on incomplete classPathpublic java.lang.String toString()
Object.toString()public static java.lang.String getParameterDescriptor(java.lang.String methodDescriptor)
methodDescriptor - the methodDescriptor
public static java.lang.Class[] getParameterTypes(java.lang.String methodDescriptor)
throws java.lang.ClassNotFoundException
methodDescriptor - the string
java.lang.ClassNotFoundException - on incomplete classPathpublic static java.lang.String getReturnDescriptor(java.lang.String methodDescriptor)
methodDescriptor - the methodDescriptor
public static java.lang.Class getReturnType(java.lang.String methodDescriptor)
throws java.lang.ClassNotFoundException
methodDescriptor - the returnDescriptor
java.lang.ClassNotFoundException - on incomplete classPath
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||