public class MethodSignature extends Object implements Serializable
Copyright (c) 2002-2019 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.
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
- String; the descriptorpublic MethodSignature(Method method)
method
- Method; the methodpublic MethodSignature(Constructor<?> 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 static String getParameterDescriptor(String methodDescriptor)
methodDescriptor
- String; the methodDescriptorpublic static Class<?>[] getParameterTypes(String methodDescriptor) throws ClassNotFoundException
methodDescriptor
- String; the stringClassNotFoundException
- on incomplete classPathpublic static String getReturnDescriptor(String methodDescriptor)
methodDescriptor
- String; the methodDescriptorpublic static Class<?> getReturnType(String methodDescriptor) throws ClassNotFoundException
methodDescriptor
- String; the returnDescriptorClassNotFoundException
- on incomplete classPathCopyright © 2018–2019 Delft University of Technology. All rights reserved.