public class ReflectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class[] |
getArgumentTypesFromArgumentList(Object[] args)
Extract argument types from a string that represents the method
signature.
|
static Class[] |
getArgumentTypesFromString(String s)
Get arguments from method signature.
|
static Class |
getClassFromMethodToString(String methodString)
Extract class name from method to string path.
|
static Method |
getMethodFromToString(String methodString)
Extract method name from to string path.
|
static String |
getMethodNameOnlyFromString(String s) |
static Class<?> |
getPrimitiveType(String s) |
static String |
getShortMethodName(String longName) |
static <T> T |
newInstanceFromUnknownArgumentTypes(Class<T> cls,
Object[] args) |
public static Class[] getArgumentTypesFromString(String s)
s
- String representation of signaturepublic static Class[] getArgumentTypesFromArgumentList(Object[] args)
args
- Signature stringpublic static <T> T newInstanceFromUnknownArgumentTypes(Class<T> cls, Object[] args)
public static Method getMethodFromToString(String methodString)
methodString
- Method signature in the form of a stringCopyright © 2019 CorfuDB. All rights reserved.