Package api.util
Class ReflectionUtils
java.lang.Object
api.util.ReflectionUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstructorfindMatchingConstructor(Class<?> classForSearch, Class[] parameterTypes) static ClassgetClassByName(String name) static Class<?>getPrimitiveFromBoxedClass(Class<?> type) Convert boxed primitive type into the primitive type it representsstatic booleanstatic voidsetObfuscated(boolean isObfuscated)
-
Field Details
-
boxedToPrimitiveTypeMap
-
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
isObfuscated
public static boolean isObfuscated() -
setObfuscated
public static void setObfuscated(boolean isObfuscated) -
getPrimitiveFromBoxedClass
Convert boxed primitive type into the primitive type it represents- Parameters:
type-- Returns:
- Primitive type if the type passed was a boxed primitive, null otherwise
-
findMatchingConstructor
-
getClassByName
-