Package org.djutils.reflection
Class MethodSignature
java.lang.Object
org.djutils.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: Method Descriptors .
 
Copyright (c) 2002-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
- Author:
 - Peter Jacobs, Niels Lang, Alexander Verbraeck
 
- 
Constructor Summary
ConstructorsConstructorDescriptionMethodSignature(Constructor<?> constructor) constructs a new MethodSignature.MethodSignature(Method method) constructs a new MethodSignature.MethodSignature(String value) constructs a new MethodSignature. - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetParameterDescriptor(String methodDescriptor) Class<?>[]returns the parameterTypes.static Class<?>[]getParameterTypes(String methodDescriptor) returns the parameterTypes.static StringgetReturnDescriptor(String methodDescriptor) Class<?>returns the returnType of this methodDescriptor.static Class<?>getReturnType(String methodDescriptor) returns the returnType of this methodDescriptor.toString() 
- 
Constructor Details
- 
MethodSignature
constructs a new MethodSignature.- Parameters:
 value- the descriptor
 - 
MethodSignature
constructs a new MethodSignature.- Parameters:
 method- the method
 - 
MethodSignature
constructs a new MethodSignature.- Parameters:
 constructor- the constructor
 
 - 
 - 
Method Details
- 
getParameterDescriptor
- Returns:
 - Returns the parameterDescriptor
 
 - 
getParameterTypes
returns the parameterTypes.- Returns:
 - ClassDescriptor[] the result
 - Throws:
 ClassNotFoundException- on incomplete classPath
 - 
getReturnDescriptor
- Returns:
 - Returns the returnDescriptor.
 
 - 
getReturnType
returns the returnType of this methodDescriptor.- Returns:
 - Returns the returnType
 - Throws:
 ClassNotFoundException- on incomplete classPath
 - 
toString
 - 
getParameterDescriptor
- Parameters:
 methodDescriptor- the methodDescriptor- Returns:
 - Returns the parameterDescriptor
 
 - 
getParameterTypes
returns the parameterTypes.- Parameters:
 methodDescriptor- the string- Returns:
 - ClassDescriptor[] the result
 - Throws:
 ClassNotFoundException- on incomplete classPath
 - 
getReturnDescriptor
- Parameters:
 methodDescriptor- the methodDescriptor- Returns:
 - Returns the returnDescriptor
 
 - 
getReturnType
returns the returnType of this methodDescriptor.- Parameters:
 methodDescriptor- the returnDescriptor- Returns:
 - Returns the returnType
 - Throws:
 ClassNotFoundException- on incomplete classPath
 
 -